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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabove()
above
(int p_123336_) below()
below
(int p_123335_) boolean
closerThan
(Vec3i p_123315_, double p_123316_) boolean
closerToCenterThan
(Position p_203196_, double p_203197_) int
int
distManhattan
(Vec3i p_123334_) double
double
distToCenterSqr
(double p_203199_, double p_203200_, double p_203201_) double
distToCenterSqr
(Position p_203194_) double
distToLowCornerSqr
(double p_203203_, double p_203204_, double p_203205_) east()
east
(int p_175598_) boolean
int
get
(Direction.Axis p_123305_) int
getX()
int
getY()
int
getZ()
int
hashCode()
multiply
(int p_175602_) north()
north
(int p_175601_) 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 Vec3i
setX
(int p_175605_) protected Vec3i
setY
(int p_175604_) protected Vec3i
setZ
(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_)
-
-
Method Details
-
offsetCodec
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<Vec3i>
-
getX
public int getX() -
getY
public int getY() -
getZ
public int getZ() -
setX
-
setY
-
setZ
-
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
-