public interface IPos
| Modifier and Type | Method and Description |
|---|---|
IPos |
add(double x,
double y,
double 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.
|
IPos |
crossProduct(double x,
double y,
double z) |
IPos |
crossProduct(IPos pos) |
double |
distanceTo(double x,
double y,
double z) |
double |
distanceTo(IPos pos) |
IPos |
divide(double scalar) |
IPos |
down()
Shifts the IPos down by 1 block and returns the new object.
|
IPos |
down(double n) |
IPos |
east()
Shifts the IPos east by 1 block and returns the new object.
|
IPos |
east(double n) |
IPos |
fromLong(long serialized) |
BlockPos |
getMCPos() |
int |
getX() |
double |
getXD() |
int |
getY() |
double |
getYD() |
int |
getZ() |
double |
getZD() |
IPos |
normalize()
Returns a normalized vector of this block's position, calculated by:
|
double[] |
normalizeDouble() |
IPos |
north()
Shifts the IPos north by 1 block and returns the new object.
|
IPos |
north(double 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,
double 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(double n) |
IPos |
subtract(double x,
double y,
double 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.
|
long |
toLong() |
IPos |
up()
Shifts the IPos up by 1 block and returns the new object.
|
IPos |
up(double n) |
IPos |
west()
Shifts the IPos west by 1 block and returns the new object.
|
IPos |
west(double n) |
int getX()
int getY()
int getZ()
double getXD()
double getYD()
double getZD()
IPos up()
IPos up(double n)
n - The number of blocks to move the position up by.IPos down()
IPos down(double n)
n - The number of blocks to move the position down by.IPos north()
IPos north(double n)
n - The number of blocks to move the position north by.IPos east()
IPos east(double n)
n - The number of blocks to move the position east by.IPos south()
IPos south(double n)
n - The number of blocks to move the position south by.IPos west()
IPos west(double n)
n - The number of blocks to move the position west by.IPos add(double x, double y, double 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(double x, double y, double 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.IPos normalize()
double[] normalizeDouble()
IPos offset(int direction)
IPos offset(int direction, double n)
IPos crossProduct(double x, double y, double z)
IPos divide(double scalar)
long toLong()
IPos fromLong(long serialized)
double distanceTo(IPos pos)
pos - The IPos object to calculate the distance todouble distanceTo(double x,
double y,
double z)
BlockPos getMCPos()