类 Vec3i
java.lang.Object
net.minecraft.core.Vec3i
- 所有已实现的接口:
Comparable<Vec3i>
- 直接已知子类:
BlockPos
,SectionPos
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明above()
above
(int pDistance) below()
below
(int pDistance) boolean
closerThan
(Vec3i pVector, double pDistance) boolean
closerToCenterThan
(Position pPosition, double pDistance) int
int
distManhattan
(Vec3i pVector) double
double
distToCenterSqr
(double pX, double pY, double pZ) double
distToCenterSqr
(Position pPosition) double
distToLowCornerSqr
(double pX, double pY, double pZ) east()
east
(int pDistance) boolean
int
get
(Direction.Axis pAxis) int
getX()
int
getY()
int
getZ()
int
hashCode()
multiply
(int pScalar) north()
north
(int pDistance) offset
(int pDx, int pDy, int pDz) static com.mojang.serialization.Codec<Vec3i>
offsetCodec
(int p_194651_) relative
(Direction.Axis pAxis, int pAmount) protected Vec3i
setX
(int pX) protected Vec3i
setY
(int pY) protected Vec3i
setZ
(int pZ) south()
south
(int pDistance) toString()
west()
west
(int pDistance)
-
字段详细资料
-
CODEC
-
ZERO
-
x
private int x -
y
private int y -
z
private int z
-
-
构造器详细资料
-
Vec3i
public Vec3i(int pX, int pY, int pZ)
-
-
方法详细资料
-
offsetCodec
-
equals
-
hashCode
public int hashCode() -
compareTo
- 指定者:
compareTo
在接口中Comparable<Vec3i>
-
getX
public int getX() -
getY
public int getY() -
getZ
public int getZ() -
setX
-
setY
-
setZ
-
offset
-
offset
-
subtract
-
multiply
-
above
-
above
-
below
-
below
-
north
-
north
-
south
-
south
-
west
-
west
-
east
-
east
-
relative
-
relative
-
relative
-
cross
-
closerThan
-
closerToCenterThan
-
distSqr
-
distToCenterSqr
-
distToCenterSqr
public double distToCenterSqr(double pX, double pY, double pZ) -
distToLowCornerSqr
public double distToLowCornerSqr(double pX, double pY, double pZ) -
distManhattan
-
get
-
toString
-
toShortString
-