@Immutable public class Vec3i extends java.lang.Object implements java.lang.Comparable<Vec3i>
Modifier and Type | Field and Description |
---|---|
static Vec3i |
NULL_VECTOR |
private int |
x
Deprecated.
|
private int |
y
Deprecated.
|
private int |
z
Deprecated.
|
Constructor and Description |
---|
Vec3i(double xIn,
double yIn,
double zIn) |
Vec3i(int xIn,
int yIn,
int zIn) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Vec3i p_compareTo_1_) |
Vec3i |
crossProduct(Vec3i vec) |
double |
distanceSq(double p_218140_1_,
double p_218140_3_,
double p_218140_5_,
boolean useCenter) |
double |
distanceSq(IPosition p_218138_1_,
boolean useCenter) |
double |
distanceSq(Vec3i to) |
Vec3i |
down() |
Vec3i |
down(int n) |
boolean |
equals(java.lang.Object p_equals_1_) |
java.lang.String |
func_229422_x_() |
int |
getX() |
int |
getY() |
int |
getZ() |
int |
hashCode() |
int |
manhattanDistance(Vec3i p_218139_1_) |
Vec3i |
offset(Direction facing,
int n) |
java.lang.String |
toString() |
boolean |
withinDistance(IPosition p_218137_1_,
double distance) |
boolean |
withinDistance(Vec3i p_218141_1_,
double distance) |
public static final Vec3i NULL_VECTOR
@Deprecated private final int x
@Deprecated private final int y
@Deprecated private final int z
public Vec3i(int xIn, int yIn, int zIn)
public Vec3i(double xIn, double yIn, double zIn)
public boolean equals(java.lang.Object p_equals_1_)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(Vec3i p_compareTo_1_)
compareTo
in interface java.lang.Comparable<Vec3i>
public int getX()
public int getY()
public int getZ()
public Vec3i down()
public Vec3i down(int n)
public boolean withinDistance(Vec3i p_218141_1_, double distance)
public boolean withinDistance(IPosition p_218137_1_, double distance)
public double distanceSq(Vec3i to)
public double distanceSq(IPosition p_218138_1_, boolean useCenter)
public double distanceSq(double p_218140_1_, double p_218140_3_, double p_218140_5_, boolean useCenter)
public int manhattanDistance(Vec3i p_218139_1_)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String func_229422_x_()