Class Vec3i
java.lang.Object
net.minecraft.core.Vec3i
- All Implemented Interfaces:
Comparable<Vec3i>
- Direct Known Subclasses:
BlockPos, SectionPos
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabove()above(int steps) below()below(int steps) booleancloserThan(Vec3i pos, double distance) booleancloserToCenterThan(Position pos, double distance) intintdistChessboard(Vec3i pos) intdistManhattan(Vec3i pos) doubledoubledistToCenterSqr(double x, double y, double z) doubledistToCenterSqr(Position pos) doubledistToLowCornerSqr(double x, double y, double z) east()east(int steps) booleanintget(Direction.Axis axis) intgetX()intgetY()intgetZ()inthashCode()multiply(int scale) multiply(int xScale, int yScale, int zScale) north()north(int steps) offset(int x, int y, int z) offsetCodec(int maxOffsetPerAxis) relative(Direction.Axis axis, int steps) protected Vec3isetX(int x) protected Vec3isetY(int y) protected Vec3isetZ(int z) south()south(int steps) org.joml.Vector3itoString()west()west(int steps)
-
Field Details
-
CODEC
-
STREAM_CODEC
-
ZERO
-
x
private int x -
y
private int y -
z
private int z
-
-
Constructor Details
-
Vec3i
public Vec3i(int x, int y, int z)
-
-
Method Details
-
offsetCodec
-
equals
-
hashCode
-
compareTo
- Specified by:
compareToin interfaceComparable<Vec3i>
-
getX
public int getX() -
getY
public int getY() -
getZ
public int getZ() -
setX
-
setY
-
setZ
-
offset
-
offset
-
subtract
-
multiply
-
multiply
-
above
-
above
-
below
-
below
-
north
-
north
-
south
-
south
-
west
-
west
-
east
-
east
-
relative
-
relative
-
relative
-
cross
-
closerThan
-
closerToCenterThan
-
distSqr
-
distToCenterSqr
-
distToCenterSqr
public double distToCenterSqr(double x, double y, double z) -
distToLowCornerSqr
public double distToLowCornerSqr(double x, double y, double z) -
distManhattan
-
distChessboard
-
get
-
toMutable
public org.joml.Vector3i toMutable() -
toString
-
toShortString
-