Package net.minecraft.util.math
Class BlockPos.MutableBlockPos
- java.lang.Object
-
- net.minecraft.util.Vec3i
-
- net.minecraft.util.math.BlockPos
-
- net.minecraft.util.math.BlockPos.MutableBlockPos
-
- All Implemented Interfaces:
java.lang.Comparable<Vec3i>
- Direct Known Subclasses:
BlockPos.PooledMutableBlockPos
- Enclosing class:
- BlockPos
public static class BlockPos.MutableBlockPos extends BlockPos
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.util.math.BlockPos
BlockPos.MutableBlockPos, BlockPos.PooledMutableBlockPos
-
-
Constructor Summary
Constructors Constructor Description MutableBlockPos()
MutableBlockPos(int x_, int y_, int z_)
MutableBlockPos(BlockPos pos)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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_dBlockPos.MutableBlockPos
setPos(Vec3i p_189533_1_)
void
setY(int yIn)
BlockPos
toImmutable()
Returns a version of this BlockPos that is guaranteed to be immutable.-
Methods inherited from class net.minecraft.util.math.BlockPos
add, add, add, crossProduct, down, down, east, east, fromLong, getAllInBox, north, north, offset, offset, south, south, toLong, up, up, west, west
-
-
-
-
Constructor Detail
-
MutableBlockPos
public MutableBlockPos()
-
MutableBlockPos
public MutableBlockPos(BlockPos pos)
-
MutableBlockPos
public MutableBlockPos(int x_, int y_, int z_)
-
-
Method Detail
-
setPos
public 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
-
setPos
public BlockPos.MutableBlockPos setPos(double p_189532_1_, double p_189532_3_, double p_189532_5_)
-
setPos
public BlockPos.MutableBlockPos setPos(Vec3i p_189533_1_)
-
move
public BlockPos.MutableBlockPos move(net.minecraft.util.EnumFacing p_189536_1_)
-
move
public BlockPos.MutableBlockPos move(net.minecraft.util.EnumFacing p_189534_1_, int p_189534_2_)
-
setY
public void setY(int yIn)
-
toImmutable
public BlockPos toImmutable()
Returns a version of this BlockPos that is guaranteed to be immutable.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.
-
-