public static class BlockPos.MutableBlockPos extends BlockPos
BlockPos.MutableBlockPos, BlockPos.PooledMutableBlockPos
Modifier and Type | Field and Description |
---|---|
protected int |
x
Mutable X Coordinate
|
protected int |
y
Mutable Y Coordinate
|
protected int |
z
Mutable Z Coordinate
|
NULL_VECTOR
Constructor and Description |
---|
MutableBlockPos() |
MutableBlockPos(BlockPos pos) |
MutableBlockPos(int x_,
int y_,
int z_) |
Modifier and Type | Method and Description |
---|---|
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
|
int |
getX()
Gets the X coordinate.
|
int |
getY()
Gets the Y coordinate.
|
int |
getZ()
Gets the Z coordinate.
|
BlockPos.MutableBlockPos |
move(EnumFacing facing) |
BlockPos.MutableBlockPos |
move(EnumFacing facing,
int p_189534_2_) |
BlockPos |
offset(EnumFacing facing,
int n)
Offsets this BlockPos n blocks in the given direction
|
BlockPos |
rotate(Rotation rotationIn) |
BlockPos.MutableBlockPos |
setPos(double xIn,
double yIn,
double zIn) |
BlockPos.MutableBlockPos |
setPos(Entity entityIn) |
BlockPos.MutableBlockPos |
setPos(int xIn,
int yIn,
int zIn)
Sets the position, MUST not be name 'set' as that causes obfusication conflicts with func_185343_d
|
BlockPos.MutableBlockPos |
setPos(Vec3i vec) |
void |
setY(int yIn) |
BlockPos |
toImmutable()
Returns a version of this BlockPos that is guaranteed to be immutable.
|
add, crossProduct, down, down, east, east, fromLong, func_191531_b, func_191532_a, getAllInBox, getAllInBoxMutable, north, north, offset, south, south, subtract, toLong, up, up, west, west
compareTo, distanceSq, distanceSq, distanceSqToCenter, equals, getDistance, hashCode, toString
protected int x
protected int y
protected int z
public MutableBlockPos()
public MutableBlockPos(BlockPos pos)
public MutableBlockPos(int x_, int y_, int z_)
public BlockPos add(double x, double y, double z)
public BlockPos add(int x, int y, int z)
public BlockPos offset(EnumFacing facing, int n)
public BlockPos.MutableBlockPos setPos(int xIn, int yIn, int zIn)
public BlockPos.MutableBlockPos setPos(double xIn, double yIn, double zIn)
public BlockPos.MutableBlockPos setPos(Entity entityIn)
public BlockPos.MutableBlockPos setPos(Vec3i vec)
public BlockPos.MutableBlockPos move(EnumFacing facing)
public BlockPos.MutableBlockPos move(EnumFacing facing, int p_189534_2_)
public void setY(int yIn)
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
in class BlockPos