public interface IPos
| Modifier and Type | Method and Description |
|---|---|
IPos |
add(int x,
int y,
int z)
Adds the IPos' coordinates by each of the parameters given.
|
IPos |
add(IPos pos)
Directly adds the coordinates of two IPos objects and returns the resulting IPos sum.
|
double |
distanceTo(IPos pos) |
IPos |
down()
Shifts the IPos down by 1 block and returns the new object.
|
IPos |
down(int n) |
IPos |
east()
Shifts the IPos east by 1 block and returns the new object.
|
IPos |
east(int n) |
int |
getX() |
int |
getY() |
int |
getZ() |
double[] |
normalize()
Returns a normalized vector of this block's position, calculated by:
|
IPos |
north()
Shifts the IPos north by 1 block and returns the new object.
|
IPos |
north(int n) |
IPos |
offset(int direction)
Offsets the block by 1 block in the given direction and returns the resulting IPos object
|
IPos |
offset(int direction,
int n)
Offsets the block by n blocks in the given direction and returns the resulting IPos object
|
IPos |
south()
Shifts the IPos south by 1 block and returns the new object.
|
IPos |
south(int n) |
IPos |
subtract(int x,
int y,
int z)
Subtracts the IPos' coordinates by each of the parameters given.
|
IPos |
subtract(IPos pos)
Directly subtracts the coordinates of two IPos objects and returns the resulting IPos difference.
|
IPos |
up()
Shifts the IPos up by 1 block and returns the new object.
|
IPos |
up(int n) |
IPos |
west()
Shifts the IPos west by 1 block and returns the new object.
|
IPos |
west(int n) |
int getX()
int getY()
int getZ()
IPos up()
IPos up(int n)
n - The number of blocks to move the position up by.IPos down()
IPos down(int n)
n - The number of blocks to move the position down by.IPos north()
IPos north(int n)
n - The number of blocks to move the position north by.IPos east()
IPos east(int n)
n - The number of blocks to move the position east by.IPos south()
IPos south(int n)
n - The number of blocks to move the position south by.IPos west()
IPos west(int n)
n - The number of blocks to move the position west by.IPos add(int x, int y, int z)
x - X coordinate amount to be addedy - Y coordinate amount to be addedz - Z coordinate amount to be addedIPos add(IPos pos)
pos - The position to be added to this IPos object.IPos subtract(int x, int y, int z)
x - X coordinate amount to be subtractedy - Y coordinate amount to be subtractedz - Z coordinate amount to be subtractedIPos subtract(IPos pos)
pos - The position to be subtracted from this IPos object.double[] normalize()
IPos offset(int direction)
IPos offset(int direction, int n)
double distanceTo(IPos pos)
pos - The IPos object to calculate the distance to