Package noppes.npcs.api
Interface IPos
public interface IPos
All the methods in IPos create a new IPos object
-
Method Summary
Modifier and TypeMethodDescriptionadd(int x, int y, int z) doubledistanceTo(IPos pos) down()down(int n) east()east(int n) net.minecraft.core.BlockPosintgetX()intgetY()intgetZ()double[]north()north(int n) offset(int direction) offset(int direction, int n) south()south(int n) subtract(int x, int y, int z) up()up(int n) west()west(int n)
-
Method Details
-
getX
int getX() -
getY
int getY() -
getZ
int getZ() -
up
IPos up() -
up
-
down
IPos down() -
down
-
north
IPos north() -
north
-
east
IPos east() -
east
-
south
IPos south() -
south
-
west
IPos west() -
west
-
add
-
add
-
subtract
-
subtract
-
normalize
double[] normalize() -
getMCBlockPos
net.minecraft.core.BlockPos getMCBlockPos() -
offset
- Parameters:
direction-SideType
-
offset
- Parameters:
direction-SideTypen- how many positions
-
distanceTo
-