Package net.minecraft.util.math.vector
Class Vector3i
- java.lang.Object
-
- net.minecraft.util.math.vector.Vector3i
-
- All Implemented Interfaces:
java.lang.Comparable<Vector3i>
- Direct Known Subclasses:
BlockPos
,SectionPos
@Immutable public class Vector3i extends java.lang.Object implements java.lang.Comparable<Vector3i>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vector3i
above()
Vector3i
above(int p_177981_1_)
Vector3i
below()
Vector3i
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
compareTo(Vector3i p_compareTo_1_)
Vector3i
cross(Vector3i p_177955_1_)
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
distSqr(IPosition p_218138_1_, boolean p_218138_2_)
double
distSqr(Vector3i p_177951_1_)
boolean
equals(java.lang.Object p_equals_1_)
int
get(Direction.Axis p_243648_1_)
int
getX()
int
getY()
int
getZ()
int
hashCode()
Vector3i
relative(Direction p_177967_1_, int p_177967_2_)
protected void
setX(int p_223471_1_)
protected void
setY(int p_185336_1_)
protected void
setZ(int p_223472_1_)
java.lang.String
toShortString()
java.lang.String
toString()
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
compareTo
public int compareTo(Vector3i p_compareTo_1_)
- Specified by:
compareTo
in interfacejava.lang.Comparable<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
public Vector3i above()
-
above
public Vector3i above(int p_177981_1_)
-
below
public Vector3i below()
-
below
public Vector3i below(int p_177979_1_)
-
closerThan
public boolean closerThan(Vector3i p_218141_1_, double p_218141_2_)
-
closerThan
public boolean closerThan(IPosition p_218137_1_, double p_218137_2_)
-
distSqr
public double distSqr(Vector3i p_177951_1_)
-
distSqr
public double distSqr(IPosition p_218138_1_, boolean p_218138_2_)
-
distSqr
public double distSqr(double p_218140_1_, double p_218140_3_, double p_218140_5_, boolean p_218140_7_)
-
distManhattan
public int distManhattan(Vector3i p_218139_1_)
-
get
public int get(Direction.Axis p_243648_1_)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toShortString
public java.lang.String toShortString()
-
-