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) double
distanceTo
(IPos pos) down()
down
(int n) east()
east
(int n) net.minecraft.core.BlockPos
int
getX()
int
getY()
int
getZ()
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
-SideType
n
- how many positions
-
distanceTo
-