Package net.minecraft.core
Class Vec3i
java.lang.Object
net.minecraft.core.Vec3i
- All Implemented Interfaces:
- Comparable<Vec3i>
- Direct Known Subclasses:
- BlockPos,- SectionPos
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabove()above(int p_123336_) below()below(int p_123335_) 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(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
- 
xprivate int x
- 
yprivate int y
- 
zprivate int z
 
- 
- 
Constructor Details- 
Vec3ipublic Vec3i(int p_123296_, int p_123297_, int p_123298_) 
 
- 
- 
Method Details- 
offsetCodec
- 
equals
- 
hashCodepublic int hashCode()
- 
compareTo- Specified by:
- compareToin interface- Comparable<Vec3i>
 
- 
getXpublic int getX()
- 
getYpublic int getY()
- 
getZpublic 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
- 
distToCenterSqrpublic double distToCenterSqr(double p_203199_, double p_203200_, double p_203201_) 
- 
distToLowCornerSqrpublic double distToLowCornerSqr(double p_203203_, double p_203204_, double p_203205_) 
- 
distManhattan
- 
get
- 
toString
- 
toShortString
 
-