@Immutable public class Vec3i extends java.lang.Object implements java.lang.Comparable<Vec3i>
修飾子とタイプ | フィールドと説明 |
---|---|
static Vec3i |
NULL_VECTOR
An immutable vector with zero as all coordinates.
|
コンストラクタと説明 |
---|
Vec3i(double xIn,
double yIn,
double zIn) |
Vec3i(int xIn,
int yIn,
int zIn) |
修飾子とタイプ | メソッドと説明 |
---|---|
int |
compareTo(Vec3i p_compareTo_1_) |
Vec3i |
crossProduct(Vec3i vec)
Calculate the cross product of this and the given Vector
|
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)
Calculate squared distance to the given Vector
|
Vec3i |
down()
Offset this BlockPos 1 block down
|
Vec3i |
down(int n)
Offset this BlockPos n blocks down
|
boolean |
equals(java.lang.Object p_equals_1_) |
java.lang.String |
func_229422_x_() |
int |
getX()
Gets the X coordinate.
|
int |
getY()
Gets the Y coordinate.
|
int |
getZ()
Gets the Z coordinate.
|
int |
hashCode() |
int |
manhattanDistance(Vec3i p_218139_1_) |
Vec3i |
offset(Direction facing,
int n)
Offsets this BlockPos n blocks in the given direction
|
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
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
クラス内 java.lang.Object
public int hashCode()
hashCode
クラス内 java.lang.Object
public int compareTo(Vec3i p_compareTo_1_)
compareTo
インタフェース内 java.lang.Comparable<Vec3i>
public int getX()
public int getY()
public int getZ()
public Vec3i down()
public Vec3i down(int n)
public Vec3i offset(Direction facing, int n)
public Vec3i crossProduct(Vec3i vec)
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
クラス内 java.lang.Object
public java.lang.String func_229422_x_()