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(Position p_123307_, double p_123308_)
boolean
closerThan(Vec3i p_123315_, double p_123316_)
int
int
distManhattan(Vec3i p_123334_)
double
distSqr(double p_123300_, double p_123301_, double p_123302_, boolean p_123303_)
double
double
double
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(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 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_) -
Vec3i
public Vec3i(double p_123292_, double p_123293_, double p_123294_)
-
-
Method Details
-
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
-
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
-