public interface ILocation extends java.lang.Comparable<ILocation>, INBTSerializable
| Modifier and Type | Method and Description |
|---|---|
ILocation |
copy()
Copy this location.
|
int[] |
getCoordinates()
Get the coordinates for this location.
|
ISize |
getDifference(ILocation location)
Get the difference between this and the given location.
|
int |
getDimensions()
Get the amount of dimensions this location is defined in.
|
int |
getDistance(ILocation location)
Get the distance between this and the given location.
|
void |
setCoordinates(int[] coordinates)
Set the coordinates for this location.
|
ILocation |
subtract(ILocation location)
Subtract this location with a given location.
|
fromNBT, toNBTint getDimensions()
int[] getCoordinates()
void setCoordinates(int[] coordinates)
coordinates - The coordinates.ISize getDifference(ILocation location)
location - The location to calculate the difference with.int getDistance(ILocation location)
location - The location to calculate the distance with.ILocation subtract(ILocation location)
location - The location to subtract with.java.lang.IllegalArgumentException - If the dimensions differ.ILocation copy()