Package appeng.api.util
Class WorldCoord
java.lang.Object
appeng.api.util.WorldCoord
Represents a relative coordinate, either relative to another object, or relative to the origin of a dimension.
TODO: Consider replacing with
BlockPos-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWorldCoord(int _x, int _y, int _z) WorldCoord(net.minecraft.core.BlockPos pos) WorldCoord(net.minecraft.world.level.block.entity.BlockEntity s) -
Method Summary
Modifier and TypeMethodDescriptionadd(int _x, int _y, int _z) add(net.minecraft.core.Direction direction, int length) copy()net.minecraft.core.DirectiondirectionTo(WorldCoord loc) Will Return NULL if it's at some diagonal!divide(int _x, int _y, int _z) booleannet.minecraft.core.BlockPosnet.minecraft.core.BlockPosgetPos()inthashCode()booleanmultiple(int _x, int _y, int _z) subtract(int _x, int _y, int _z) subtract(net.minecraft.core.Direction direction, int length) toString()
-
Field Details
-
x
public int x -
y
public int y -
z
public int z
-
-
Constructor Details
-
WorldCoord
public WorldCoord(net.minecraft.world.level.block.entity.BlockEntity s) -
WorldCoord
public WorldCoord(int _x, int _y, int _z) -
WorldCoord
public WorldCoord(net.minecraft.core.BlockPos pos)
-
-
Method Details
-
subtract
-
add
-
subtract
-
multiple
-
divide
-
getBlockPos
public net.minecraft.core.BlockPos getBlockPos() -
directionTo
Will Return NULL if it's at some diagonal! -
isEqual
-
add
-
copy
-
hashCode
public int hashCode() -
equals
-
getPos
public net.minecraft.core.BlockPos getPos() -
toString
-