public static class BlockPos.Mutable extends BlockPos
BlockPos.Mutable, BlockPos.PooledMutable
修飾子とタイプ | フィールドと説明 |
---|---|
protected int |
x
Mutable X Coordinate
|
protected int |
y
Mutable Y Coordinate
|
protected int |
z
Mutable Z Coordinate
|
NULL_VECTOR
コンストラクタと説明 |
---|
Mutable() |
Mutable(BlockPos pos) |
Mutable(double p_i50824_1_,
double p_i50824_3_,
double p_i50824_5_) |
Mutable(Entity p_i226062_1_) |
Mutable(int x_,
int y_,
int z_) |
修飾子とタイプ | メソッドと説明 |
---|---|
BlockPos |
add(double x,
double y,
double z)
Add the given coordinates to the coordinates of this BlockPos
|
BlockPos |
add(int x,
int y,
int z)
Add the given coordinates to the coordinates of this BlockPos
|
BlockPos.Mutable |
func_218295_a(AxisRotation p_218295_1_,
int p_218295_2_,
int p_218295_3_,
int p_218295_4_) |
int |
getX()
Gets the X coordinate.
|
int |
getY()
Gets the Y coordinate.
|
int |
getZ()
Gets the Z coordinate.
|
BlockPos.Mutable |
move(Direction facing) |
BlockPos.Mutable |
move(Direction facing,
int n) |
BlockPos.Mutable |
move(int xIn,
int yIn,
int zIn) |
BlockPos |
offset(Direction facing,
int n)
Offsets this BlockPos n blocks in the given direction
|
BlockPos |
rotate(Rotation rotationIn) |
BlockPos.Mutable |
setPos(double xIn,
double yIn,
double zIn) |
BlockPos.Mutable |
setPos(Entity entityIn) |
BlockPos.Mutable |
setPos(int xIn,
int yIn,
int zIn)
Sets position
|
BlockPos.Mutable |
setPos(long p_218294_1_) |
BlockPos.Mutable |
setPos(Vec3i vec) |
void |
setX(int xIn)
Sets the X coordinate.
|
void |
setY(int yIn) |
void |
setZ(int zIn)
Sets the Z coordinate.
|
BlockPos |
toImmutable()
Returns a version of this BlockPos that is guaranteed to be immutable.
|
add, crossProduct, deserialize, down, down, east, east, fromLong, func_218288_f, getAllInBox, getAllInBox, getAllInBox, getAllInBoxMutable, getAllInBoxMutable, north, north, offset, offset, offset, pack, serialize, south, south, subtract, toLong, unpackX, unpackY, unpackZ, up, up, west, west
compareTo, distanceSq, distanceSq, distanceSq, equals, func_229422_x_, hashCode, manhattanDistance, toString, withinDistance, withinDistance
protected int x
protected int y
protected int z
public Mutable()
public Mutable(BlockPos pos)
public Mutable(int x_, int y_, int z_)
public Mutable(double p_i50824_1_, double p_i50824_3_, double p_i50824_5_)
public Mutable(Entity p_i226062_1_)
public BlockPos add(double x, double y, double z)
public BlockPos add(int x, int y, int z)
public BlockPos offset(Direction facing, int n)
public BlockPos.Mutable setPos(int xIn, int yIn, int zIn)
public BlockPos.Mutable setPos(Entity entityIn)
public BlockPos.Mutable setPos(double xIn, double yIn, double zIn)
public BlockPos.Mutable setPos(Vec3i vec)
public BlockPos.Mutable setPos(long p_218294_1_)
public BlockPos.Mutable func_218295_a(AxisRotation p_218295_1_, int p_218295_2_, int p_218295_3_, int p_218295_4_)
public BlockPos.Mutable move(Direction facing)
public BlockPos.Mutable move(Direction facing, int n)
public BlockPos.Mutable move(int xIn, int yIn, int zIn)
public void setX(int xIn)
public void setY(int yIn)
public void setZ(int zIn)
public BlockPos toImmutable()
When storing a BlockPos given to you for an extended period of time, make sure you use this in case the value is changed internally.
toImmutable
クラス内 BlockPos