Package net.minecraft.core
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 p_123336_) below()below(int p_123335_) checkOffsetAxes(int p_194646_) booleancloserThan(Vec3i p_123315_, double p_123316_) booleancloserToCenterThan(Position p_203196_, double p_203197_) intintdistManhattan(Vec3i p_123334_) doubledoubledistToCenterSqr(double p_203199_, double p_203200_, double p_203201_) doubledistToCenterSqr(Position p_203194_) doubledistToLowCornerSqr(double p_203203_, double p_203204_, double p_203205_) east()east(int p_175598_) booleanintget(Direction.Axis p_123305_) intgetX()intgetY()intgetZ()inthashCode()multiply(int p_175602_) north()north(int p_175601_) offset(double p_175587_, double p_175588_, double p_175589_) offset(int p_175593_, int p_175594_, int p_175595_) static com.mojang.serialization.Codec<Vec3i>offsetCodec(int p_194651_) relative(Direction.Axis p_175590_, int p_175591_) protected Vec3isetX(int p_175605_) protected Vec3isetY(int p_175604_) protected Vec3isetZ(int p_175603_) south()south(int p_175600_) toString()west()west(int p_175599_)
-
Field Details
-
CODEC
-
ZERO
-
x
private int x -
y
private int y -
z
private int z
-
-
Constructor Details
-
Vec3i
public Vec3i(int p_123296_, int p_123297_, int p_123298_) -
Vec3i
public Vec3i(double p_123292_, double p_123293_, double p_123294_)
-
-
Method Details
-
checkOffsetAxes
-
offsetCodec
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<Vec3i>
-
getX
public int getX() -
getY
public int getY() -
getZ
public int getZ() -
setX
-
setY
-
setZ
-
offset
-
offset
-
offset
-
subtract
-
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 p_203199_, double p_203200_, double p_203201_) -
distToLowCornerSqr
public double distToLowCornerSqr(double p_203203_, double p_203204_, double p_203205_) -
distManhattan
-
get
-
toString
-
toShortString
-