CommandAPI 9.7.0
An API for the command UI introduced in Minecraft 1.13
|
A class that represents a Location in the x and z directions. More...
Classes | |
class | Location2DException |
An exception caused when accessing or setting the y-coordinate of a Location2D. | |
Public Member Functions | |
Location2D (World world, double x, double y, double z, float yaw, float pitch) | |
Constructs a Location2D location. More... | |
Location2D (World world, double x, double y, double z) | |
Constructs a Location2D location. More... | |
Location2D (World world, double x, double z) | |
Constructs a Location2D location. More... | |
double | getY () |
int | getBlockY () |
void | setY (double y) |
Throws a Location2DException. More... | |
A class that represents a Location in the x and z directions.
This class extends Location, so can be used anywhere a regular Location could be used.
dev.jorel.commandapi.wrappers.Location2D.Location2D | ( | World | world, |
double | x, | ||
double | y, | ||
double | z, | ||
float | yaw, | ||
float | pitch | ||
) |
Constructs a Location2D location.
world | the world in which this location resides |
x | the x-coordinate of this location |
y | the y-coordinate of this location |
z | the z-coordinate of this location |
yaw | the absolute rotation on the x-plane, in degrees |
pitch | the absolute rotation on the y-plane, in degrees |
dev.jorel.commandapi.wrappers.Location2D.Location2D | ( | World | world, |
double | x, | ||
double | y, | ||
double | z | ||
) |
Constructs a Location2D location.
world | the world in which this location resides |
x | the x-coordinate of this location |
y | the y-coordinate of this location |
z | the z-coordinate of this location |
dev.jorel.commandapi.wrappers.Location2D.Location2D | ( | World | world, |
double | x, | ||
double | z | ||
) |
Constructs a Location2D location.
world | the world in which this location resides |
x | the x-coordinate of this location |
z | the z-coordinate of this location |
int dev.jorel.commandapi.wrappers.Location2D.getBlockY | ( | ) |
double dev.jorel.commandapi.wrappers.Location2D.getY | ( | ) |
void dev.jorel.commandapi.wrappers.Location2D.setY | ( | double | y | ) |
Throws a Location2DException.
y | y-coordinate |