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
|
| Constructor and Description |
|---|
MutableBlockPos() |
MutableBlockPos(BlockPos pos) |
MutableBlockPos(int x_,
int y_,
int z_) |
| Modifier and Type | Method and Description |
|---|---|
int |
getX()
Gets the X coordinate.
|
int |
getY()
Gets the Y coordinate.
|
int |
getZ()
Gets the Z coordinate.
|
BlockPos.MutableBlockPos |
move(net.minecraft.util.EnumFacing p_189536_1_) |
BlockPos.MutableBlockPos |
move(net.minecraft.util.EnumFacing p_189534_1_,
int p_189534_2_) |
BlockPos.MutableBlockPos |
setPos(double p_189532_1_,
double p_189532_3_,
double p_189532_5_) |
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 p_189533_1_) |
void |
setY(int yIn) |
BlockPos |
toImmutable()
Returns a version of this BlockPos that is guaranteed to be immutable.
|
add, add, add, crossProduct, down, down, east, east, fromLong, getAllInBox, north, north, offset, offset, south, south, toLong, up, up, west, westprotected int x
protected int y
protected int z
public MutableBlockPos()
public MutableBlockPos(BlockPos pos)
public MutableBlockPos(int x_,
int y_,
int z_)
public BlockPos.MutableBlockPos setPos(int xIn, int yIn, int zIn)
public BlockPos.MutableBlockPos setPos(double p_189532_1_, double p_189532_3_, double p_189532_5_)
public BlockPos.MutableBlockPos setPos(Vec3i p_189533_1_)
public BlockPos.MutableBlockPos move(net.minecraft.util.EnumFacing p_189536_1_)
public BlockPos.MutableBlockPos move(net.minecraft.util.EnumFacing p_189534_1_, 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.