![]() |
FourKit 1469f90c
The LCE C# Server Plugin API
|
Represents a 3-dimensional position in a world. More...
Public Member Functions | |
| Location (World? world, double x, double y, double z, float yaw, float pitch) | |
| Constructs a new Location with the given coordinates and direction. | |
| Location (World? world, double x, double y, double z) | |
| Constructs a new Location with the given coordinates. | |
| Location (double x, double y, double z) | |
| Creates a new Location with the given coordinates and no world. | |
| double | getX () |
| Gets the x-coordinate of this location. | |
| void | setX (double x) |
| Sets the x-coordinate of this location. | |
| double | getY () |
| Gets the y-coordinate of this location. | |
| void | setY (double y) |
| Sets the y-coordinate of this location. | |
| double | getZ () |
| Gets the z-coordinate of this location. | |
| void | setZ (double z) |
| Sets the z-coordinate of this location. | |
| float | getYaw () |
| Gets the yaw of this location, measured in degrees. | |
| void | setYaw (float yaw) |
| Sets the yaw of this location, measured in degrees. | |
| float | getPitch () |
| Gets the pitch of this location, measured in degrees. | |
| void | setPitch (float pitch) |
| Sets the pitch of this location, measured in degrees. | |
| World? | getWorld () |
| Gets the world that this location resides in. | |
| void | setWorld (World? world) |
| Sets the world that this location resides in. | |
| int | getBlockX () |
| Gets the floored value of the X component, indicating the block that this location is contained with. | |
| int | getBlockY () |
| Gets the floored value of the Y component, indicating the block that this location is contained with. | |
| int | getBlockZ () |
| Gets the floored value of the Z component, indicating the block that this location is contained with. | |
| double | length () |
| Gets the magnitude of the location, defined as sqrt(x^2+y^2+z^2). | |
| double | lengthSquared () |
| Gets the magnitude of the location squared. | |
| Location | add (double x, double y, double z) |
| Adds the location by another. | |
| Location | add (Location vec) |
| Adds the location by another. | |
| override string | ToString () |
Represents a 3-dimensional position in a world.
| Minecraft.Server.FourKit.Location.Location | ( | World? | world, |
| double | x, | ||
| double | y, | ||
| double | z, | ||
| float | yaw, | ||
| float | pitch ) |
Constructs a new Location with the given coordinates and direction.
| world | The world in which this location resides. |
| x | The x-coordinate. |
| y | The y-coordinate. |
| z | The z-coordinate. |
| yaw | The absolute rotation on the x-plane, in degrees. |
| pitch | The absolute rotation on the y-plane, in degrees. |
| Minecraft.Server.FourKit.Location.Location | ( | World? | world, |
| double | x, | ||
| double | y, | ||
| double | z ) |
Constructs a new Location with the given coordinates.
| world | The world in which this location resides. |
| x | The x-coordinate. |
| y | The y-coordinate. |
| z | The z-coordinate. |
| Minecraft.Server.FourKit.Location.Location | ( | double | x, |
| double | y, | ||
| double | z ) |
Creates a new Location with the given coordinates and no world.
| x | The x-coordinate. |
| y | The y-coordinate. |
| z | The z-coordinate. |
| Location Minecraft.Server.FourKit.Location.add | ( | double | x, |
| double | y, | ||
| double | z ) |
Adds the location by another.
| x | The x-coordinate to add. |
| y | The y-coordinate to add. |
| z | The z-coordinate to add. |
Adds the location by another.
| vec | The location to add. |
| int Minecraft.Server.FourKit.Location.getBlockX | ( | ) |
Gets the floored value of the X component, indicating the block that this location is contained with.
| int Minecraft.Server.FourKit.Location.getBlockY | ( | ) |
Gets the floored value of the Y component, indicating the block that this location is contained with.
| int Minecraft.Server.FourKit.Location.getBlockZ | ( | ) |
Gets the floored value of the Z component, indicating the block that this location is contained with.
| float Minecraft.Server.FourKit.Location.getPitch | ( | ) |
Gets the pitch of this location, measured in degrees.
| World? Minecraft.Server.FourKit.Location.getWorld | ( | ) |
Gets the world that this location resides in.
null if not set.| double Minecraft.Server.FourKit.Location.getX | ( | ) |
Gets the x-coordinate of this location.
| double Minecraft.Server.FourKit.Location.getY | ( | ) |
Gets the y-coordinate of this location.
| float Minecraft.Server.FourKit.Location.getYaw | ( | ) |
Gets the yaw of this location, measured in degrees.
| double Minecraft.Server.FourKit.Location.getZ | ( | ) |
Gets the z-coordinate of this location.
| double Minecraft.Server.FourKit.Location.length | ( | ) |
Gets the magnitude of the location, defined as sqrt(x^2+y^2+z^2).
| double Minecraft.Server.FourKit.Location.lengthSquared | ( | ) |
Gets the magnitude of the location squared.
| void Minecraft.Server.FourKit.Location.setPitch | ( | float | pitch | ) |
Sets the pitch of this location, measured in degrees.
| pitch | The new pitch. |
| void Minecraft.Server.FourKit.Location.setWorld | ( | World? | world | ) |
Sets the world that this location resides in.
| world | The new world. |
| void Minecraft.Server.FourKit.Location.setX | ( | double | x | ) |
Sets the x-coordinate of this location.
| x | The new x-coordinate. |
| void Minecraft.Server.FourKit.Location.setY | ( | double | y | ) |
Sets the y-coordinate of this location.
| y | The new y-coordinate. |
| void Minecraft.Server.FourKit.Location.setYaw | ( | float | yaw | ) |
Sets the yaw of this location, measured in degrees.
| yaw | The new yaw. |
| void Minecraft.Server.FourKit.Location.setZ | ( | double | z | ) |
Sets the z-coordinate of this location.
| z | The new z-coordinate. |