Class BlockPos
java.lang.Object
ua.mcchickenstudio.opencreative.utils.millennium.vectors.Vec3i
ua.mcchickenstudio.opencreative.utils.millennium.math.BlockPos
- All Implemented Interfaces:
Comparable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(double x, double y, double z) Add the given coordinates to the coordinates of this BlockPosadd(int x, int y, int z) Add the given coordinates to the coordinates of this BlockPosAdd the given Vector to this BlockPoscrossProduct(Vec3i vec) Calculate the cross product of this and the given VectorcrossProductBP(Vec3i vec) Calculate the cross product of this BlockPos and the given Vector.multiply(int factor) Multiply every coordinate by the given factoroffset(EnumFacing facing) Offset this BlockPos 1 block in the given directionoffset(EnumFacing facing, int n) Offset this BlockPos n blocks in the given directionSubtract the given Vector from this BlockPos
-
Field Details
-
ORIGIN
-
-
Constructor Details
-
BlockPos
public BlockPos(int x, int y, int z) -
BlockPos
public BlockPos(double x, double y, double z)
-
-
Method Details
-
add
Add the given coordinates to the coordinates of this BlockPos- Parameters:
x- X coordinatey- Y coordinatez- Z coordinate
-
add
Add the given coordinates to the coordinates of this BlockPos- Parameters:
x- X coordinatey- Y coordinatez- Z coordinate
-
add
-
subtract
-
multiply
Multiply every coordinate by the given factor -
offset
Offset this BlockPos 1 block in the given direction -
offset
Offset this BlockPos n blocks in the given direction -
crossProductBP
-
crossProduct
-