Package net.minecraft.util.math.vector
Class Vector3i
java.lang.Object
net.minecraft.util.math.vector.Vector3i
- All Implemented Interfaces:
Comparable<Vector3i>
- Direct Known Subclasses:
BlockPos
,SectionPos
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabove()
above
(int p_177981_1_) below()
below
(int p_177979_1_) boolean
closerThan
(IPosition p_218137_1_, double p_218137_2_) boolean
closerThan
(Vector3i p_218141_1_, double p_218141_2_) int
int
distManhattan
(Vector3i p_218139_1_) double
distSqr
(double p_218140_1_, double p_218140_3_, double p_218140_5_, boolean p_218140_7_) double
double
boolean
int
get
(Direction.Axis p_243648_1_) int
getX()
int
getY()
int
getZ()
int
hashCode()
protected void
setX
(int p_223471_1_) protected void
setY
(int p_185336_1_) protected void
setZ
(int p_223472_1_) toString()
-
Field Details
-
CODEC
-
ZERO
-
x
private int x -
y
private int y -
z
private int z
-
-
Constructor Details
-
Vector3i
public Vector3i(int p_i46007_1_, int p_i46007_2_, int p_i46007_3_) -
Vector3i
public Vector3i(double p_i46008_1_, double p_i46008_3_, double p_i46008_5_)
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<Vector3i>
-
getX
public int getX() -
getY
public int getY() -
getZ
public int getZ() -
setX
protected void setX(int p_223471_1_) -
setY
protected void setY(int p_185336_1_) -
setZ
protected void setZ(int p_223472_1_) -
above
-
above
-
below
-
below
-
relative
-
cross
-
closerThan
-
closerThan
-
distSqr
-
distSqr
-
distSqr
public double distSqr(double p_218140_1_, double p_218140_3_, double p_218140_5_, boolean p_218140_7_) -
distManhattan
-
get
-
toString
-
toShortString
-