Interface Loc
public interface Loc
Represents a location in the world, regardless of the server implementation
-
Method Summary
Modifier and TypeMethodDescription@NotNull StringgetWorld()Get the world nameintgetX()Get the x coordinateintgetY()Get the y coordinateintgetZ()Get the z coordinatevoidSet the world namevoidsetX(int x) Set the x coordinatevoidsetY(int y) Set the y coordinatevoidsetZ(int z) Set the z coordinate
-
Method Details
-
getX
int getX()Get the x coordinate- Returns:
- x
-
getY
int getY()Get the y coordinate- Returns:
- y
-
getZ
int getZ()Get the z coordinate- Returns:
- z
-
getWorld
Get the world name- Returns:
- world
-
setX
void setX(int x) Set the x coordinate- Parameters:
x- x
-
setY
void setY(int y) Set the y coordinate- Parameters:
y- y
-
setZ
void setZ(int z) Set the z coordinate- Parameters:
z- z
-
setWorld
Set the world name- Parameters:
world- world
-