Package net.minecraft.core
Class BlockPos.MutableBlockPos
java.lang.Object
net.minecraft.core.Vec3i
net.minecraft.core.BlockPos
net.minecraft.core.BlockPos.MutableBlockPos
- All Implemented Interfaces:
Comparable<Vec3i>
- Enclosing class:
BlockPos
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.core.BlockPos
BlockPos.MutableBlockPos, BlockPos.TraversalNodeStatus
-
Field Summary
Fields inherited from class net.minecraft.core.BlockPos
CODEC, MAX_HORIZONTAL_COORDINATE, PACKED_HORIZONTAL_LENGTH, PACKED_Y_LENGTH, STREAM_CODEC, ZERO
-
Constructor Summary
ConstructorsConstructorDescriptionMutableBlockPos
(double pX, double pY, double pZ) MutableBlockPos
(int p_122130_, int p_122131_, int p_122132_) -
Method Summary
Modifier and TypeMethodDescriptionclamp
(Direction.Axis pAxis, int pMin, int pMax) move
(int pX, int pY, int pZ) multiply
(int p_175305_) offset
(int p_122163_, int p_122164_, int p_122165_) relative
(Direction.Axis p_122145_, int p_122146_) Offsets this Vector by the given distance in the specified direction.set
(double pX, double pY, double pZ) set
(int pX, int pY, int pZ) set
(long pPackedPos) setWithOffset
(Vec3i pVector, int pOffsetX, int pOffsetY, int pOffsetZ) setWithOffset
(Vec3i pPos, Direction pDirection) setWithOffset
(Vec3i pPos, Vec3i pOffset) setX
(int p_175341_) setY
(int p_175343_) setZ
(int p_175345_) Methods inherited from class net.minecraft.core.BlockPos
above, above, asLong, asLong, atY, below, below, betweenClosed, betweenClosed, betweenClosed, betweenClosedStream, betweenClosedStream, betweenClosedStream, betweenClosedStream, breadthFirstTraversal, clampLocationWithin, containing, containing, cross, east, east, findClosestMatch, getBottomCenter, getCenter, getFlatIndex, getX, getY, getZ, max, min, mutable, north, north, of, offset, offset, offset, randomBetweenClosed, randomInCube, relative, south, south, spiralAround, squareOutSouthEast, subtract, west, west, withinManhattan, withinManhattanStream
Methods inherited from class net.minecraft.core.Vec3i
closerThan, closerToCenterThan, compareTo, distChessboard, distManhattan, distSqr, distToCenterSqr, distToCenterSqr, distToLowCornerSqr, equals, get, getX, getY, getZ, hashCode, offsetCodec, toShortString, toString
-
Constructor Details
-
MutableBlockPos
public MutableBlockPos() -
MutableBlockPos
public MutableBlockPos(int p_122130_, int p_122131_, int p_122132_) -
MutableBlockPos
public MutableBlockPos(double pX, double pY, double pZ)
-
-
Method Details
-
offset
-
multiply
-
relative
Description copied from class:Vec3i
Offsets this Vector by the given distance in the specified direction. -
relative
-
rotate
-
set
-
set
-
set
-
set
-
set
-
setWithOffset
-
setWithOffset
public BlockPos.MutableBlockPos setWithOffset(Vec3i pVector, int pOffsetX, int pOffsetY, int pOffsetZ) -
setWithOffset
-
move
-
move
-
move
-
move
-
clamp
-
setX
-
setY
-
setZ
-
immutable
-