Java lang illegalargumentexception location bukkit

Class Location

Represents a 3-dimensional position in a world.
No constraints are placed on any angular values other than that they be specified in degrees. This means that negative angles or angles of greater magnitude than 360 are valid, but may be normalized to any other equivalent representation by the implementation.

Constructor Summary

Method Summary

Gets the floored value of the X component, indicating the block that this location is contained with.

Gets the floored value of the Y component, indicating the block that this location is contained with.

Gets the floored value of the Z component, indicating the block that this location is contained with.

Methods inherited from class java.lang.Object

Constructor Details

Location

Location

Method Details

setWorld

isWorldLoaded

getWorld

getChunk

getBlock

setX

getX

getBlockX

Gets the floored value of the X component, indicating the block that this location is contained with.

Читайте также:  Php проверить на integer

setY

getY

getBlockY

Gets the floored value of the Y component, indicating the block that this location is contained with.

setZ

getZ

getBlockZ

Gets the floored value of the Z component, indicating the block that this location is contained with.

setYaw

  • A yaw of 0 or 360 represents the positive z direction.
  • A yaw of 180 represents the negative z direction.
  • A yaw of 90 represents the negative x direction.
  • A yaw of 270 represents the positive x direction.

getYaw

  • A yaw of 0 or 360 represents the positive z direction.
  • A yaw of 180 represents the negative z direction.
  • A yaw of 90 represents the negative x direction.
  • A yaw of 270 represents the positive x direction.

setPitch

  • A pitch of 0 represents level forward facing.
  • A pitch of 90 represents downward facing, or negative y direction.
  • A pitch of -90 represents upward facing, or positive y direction.

getPitch

  • A pitch of 0 represents level forward facing.
  • A pitch of 90 represents downward facing, or negative y direction.
  • A pitch of -90 represents upward facing, or positive y direction.

getDirection

setDirection

add

add

add

subtract

subtract

subtract

length

Gets the magnitude of the location, defined as sqrt(x^2+y^2+z^2). The value of this method is not cached and uses a costly square-root function, so do not repeatedly call this method to get the location’s magnitude. NaN will be returned if the inner result of the sqrt() function overflows, which will be caused if the length is too long. Not world-aware and orientation independent.

lengthSquared

distance

Get the distance between this location and another. The value of this method is not cached and uses a costly square-root function, so do not repeatedly call this method to get the location’s magnitude. NaN will be returned if the inner result of the sqrt() function overflows, which will be caused if the distance is too long.

distanceSquared

Источник

Java lang illegalargumentexception location bukkit

Represents a 3-dimensional position in a world.
No constraints are placed on any angular values other than that they be specified in degrees. This means that negative angles or angles of greater magnitude than 360 are valid, but may be normalized to any other equivalent representation by the implementation.

Constructor Summary

Method Summary

Gets the floored value of the X component, indicating the block that this location is contained with.

Gets the floored value of the Y component, indicating the block that this location is contained with.

Gets the floored value of the Z component, indicating the block that this location is contained with.

Methods inherited from class java.lang.Object

Constructor Detail

Location

public Location​(World world, double x, double y, double z)

Location

public Location​(World world, double x, double y, double z, float yaw, float pitch)

Method Detail

setWorld

getWorld

getChunk

getBlock

setX

getX

getBlockX

Gets the floored value of the X component, indicating the block that this location is contained with.

setY

getY

getBlockY

Gets the floored value of the Y component, indicating the block that this location is contained with.

setZ

getZ

getBlockZ

Gets the floored value of the Z component, indicating the block that this location is contained with.

setYaw

public void setYaw​(float yaw)
  • A yaw of 0 or 360 represents the positive z direction.
  • A yaw of 180 represents the negative z direction.
  • A yaw of 90 represents the negative x direction.
  • A yaw of 270 represents the positive x direction.

getYaw

  • A yaw of 0 or 360 represents the positive z direction.
  • A yaw of 180 represents the negative z direction.
  • A yaw of 90 represents the negative x direction.
  • A yaw of 270 represents the positive x direction.

setPitch

public void setPitch​(float pitch)
  • A pitch of 0 represents level forward facing.
  • A pitch of 90 represents downward facing, or negative y direction.
  • A pitch of -90 represents upward facing, or positive y direction.

getPitch

  • A pitch of 0 represents level forward facing.
  • A pitch of 90 represents downward facing, or negative y direction.
  • A pitch of -90 represents upward facing, or positive y direction.

getDirection

setDirection

public Location setDirection​(Vector vector)

add

add

add

public Location add​(double x, double y, double z)

subtract

subtract

subtract

public Location subtract​(double x, double y, double z)

length

Gets the magnitude of the location, defined as sqrt(x^2+y^2+z^2). The value of this method is not cached and uses a costly square-root function, so do not repeatedly call this method to get the location’s magnitude. NaN will be returned if the inner result of the sqrt() function overflows, which will be caused if the length is too long. Not world-aware and orientation independent.

lengthSquared

public double lengthSquared()

distance

Get the distance between this location and another. The value of this method is not cached and uses a costly square-root function, so do not repeatedly call this method to get the location’s magnitude. NaN will be returned if the inner result of the sqrt() function overflows, which will be caused if the distance is too long.

distanceSquared

multiply

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IllegalArgumentException: unknown world #15

IllegalArgumentException: unknown world #15

Comments

[00:31:29 ERROR]: [org.bukkit.configuration.serialization.ConfigurationSerialization] Could not call method 'public static org.bukkit.Location org.bukkit.Location.deserialize(java.util.Map)' of class org.bukkit.Location for deserialization java.lang.IllegalArgumentException: unknown world at org.bukkit.Location.deserialize(Location.java:1139) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[. ] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[. ] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[. ] at java.lang.reflect.Method.invoke(Method.java:568) ~[. ] at org.bukkit.configuration.serialization.ConfigurationSerialization.deserializeViaMethod(ConfigurationSerialization.java:85) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?] at org.bukkit.configuration.serialization.ConfigurationSerialization.deserialize(ConfigurationSerialization.java:127) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?] at org.bukkit.configuration.serialization.ConfigurationSerialization.deserializeObject(ConfigurationSerialization.java:207) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?] at org.bukkit.configuration.file.YamlConstructor$ConstructCustomObject.construct(YamlConstructor.java:48) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?] at org.yaml.snakeyaml.constructor.BaseConstructor.constructObjectNoCheck(BaseConstructor.java:230) ~[snakeyaml-1.30.jar:?] at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:220) ~[snakeyaml-1.30.jar:?] at org.bukkit.configuration.file.YamlConstructor.construct(YamlConstructor.java:27) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?] at org.bukkit.configuration.file.YamlConfiguration.fromNodeTree(YamlConfiguration.java:158) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?] at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:115) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?] at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:160) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?] at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:128) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?] at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:304) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?] at dev.sergiferry.playernpc.api.NPC$Global$PersistentManager.load(NPC.java:1847) ~[PlayerNPC (3).jar:?] at dev.sergiferry.playernpc.api.NPCLib$PluginManager.loadPersistentNPCs(NPCLib.java:483) ~[PlayerNPC (3).jar:?] at dev.sergiferry.playernpc.api.NPCLib$PluginManager.onEnable(NPCLib.java:466) ~[PlayerNPC (3).jar:?] at dev.sergiferry.playernpc.api.NPCLib.onEnable(NPCLib.java:347) ~[PlayerNPC (3).jar:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[. ] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[. ] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[. ] at java.lang.reflect.Method.invoke(Method.java:568) ~[. ] at dev.sergiferry.playernpc.PlayerNPCPlugin.callPrivate(PlayerNPCPlugin.java:88) ~[PlayerNPC (3).jar:?] at dev.sergiferry.playernpc.PlayerNPCPlugin.enable(PlayerNPCPlugin.java:59) ~[PlayerNPC (3).jar:?] at dev.sergiferry.spigot.SpigotPlugin.onEnable(SpigotPlugin.java:68) ~[PlayerNPC (3).jar:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:536) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?] at org.bukkit.craftbukkit.v1_19_R1.CraftServer.enablePlugin(CraftServer.java:563) ~[paper-1.19.jar:git-Paper-52] at org.bukkit.craftbukkit.v1_19_R1.CraftServer.enablePlugins(CraftServer.java:477) ~[paper-1.19.jar:git-Paper-52] at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:633) ~[paper-1.19.jar:git-Paper-52] at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:419) ~[paper-1.19.jar:git-Paper-52] at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:306) ~[paper-1.19.jar:git-Paper-52] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1121) ~[paper-1.19.jar:git-Paper-52] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:302) ~[paper-1.19.jar:git-Paper-52] at java.lang.Thread.run(Thread.java:833) ~[. ] ``` 

The text was updated successfully, but these errors were encountered:

Источник

Оцените статью