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_)booleancloserThan(Position p_123307_, double p_123308_)booleancloserThan(Vec3i p_123315_, double p_123316_)intintdistManhattan(Vec3i p_123334_)doubledistSqr(double p_123300_, double p_123301_, double p_123302_, boolean p_123303_)doubledoubledoubleeast()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_)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
-
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
-
closerThan
-
distSqr
-
distSqr
-
distSqr
-
distSqr
public double distSqr(double p_123300_, double p_123301_, double p_123302_, boolean p_123303_) -
distManhattan
-
get
-
toString
-
toShortString
-