Package net.minecraft.util.math
Class BlockPos.Mutable
java.lang.Object
net.minecraft.util.math.Vec3i
net.minecraft.util.math.BlockPos
net.minecraft.util.math.BlockPos.Mutable
- All Implemented Interfaces:
Comparable<Vec3i>
- Enclosing class:
- BlockPos
public static class BlockPos.Mutable extends BlockPos
- Mappings:
Namespace Name official fx$a
intermediary net/minecraft/class_2338$class_2339
named net/minecraft/util/math/BlockPos$Mutable
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.util.math.BlockPos
BlockPos.Mutable
-
Field Summary
Fields inherited from class net.minecraft.util.math.BlockPos
CODEC, ORIGIN, SIZE_BITS_Y
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description BlockPos
add(double x, double y, double z)
BlockPos
add(int x, int y, int z)
BlockPos.Mutable
clamp(Direction.Axis axis, int min, int max)
Clamps the component corresponding to the givenaxis
betweenmin
andmax
.BlockPos.Mutable
move(int dx, int dy, int dz)
Moves the mutable block position by the delta x, y, and z provided.BlockPos.Mutable
move(Direction direction)
Moves this mutable block position by 1 block in the given direction.BlockPos.Mutable
move(Direction direction, int distance)
Moves this mutable block position by the given distance in the given direction.BlockPos.Mutable
move(Vec3i vec)
BlockPos
offset(Direction.Axis axis, int distance)
BlockPos
offset(Direction direction, int int2)
BlockPos
rotate(BlockRotation rotation)
BlockPos.Mutable
set(double x, double y, double z)
BlockPos.Mutable
set(int x, int y, int z)
Sets the x, y, and z of this mutable block position.BlockPos.Mutable
set(long pos)
BlockPos.Mutable
set(AxisCycleDirection axis, int x, int y, int z)
BlockPos.Mutable
set(Vec3i pos)
BlockPos.Mutable
set(Vec3i pos, int x, int y, int z)
Sets this mutable block position to the sum of the given position and the given x, y, and z.BlockPos.Mutable
set(Vec3i pos, Direction direction)
Sets this mutable block position to the offset position of the given pos by the given direction.BlockPos.Mutable
setX(int int2)
BlockPos.Mutable
setY(int int2)
BlockPos.Mutable
setZ(int int2)
BlockPos
toImmutable()
Returns an immutable block position with the same x, y, and z as this position.Methods inherited from class net.minecraft.util.math.BlockPos
add, add, asLong, asLong, crossProduct, down, down, east, east, findClosest, fromLong, iterate, iterate, iterateInSquare, iterateOutwards, iterateRandomly, mutableCopy, north, north, offset, offset, removeChunkSectionLocalY, south, south, stream, stream, stream, stream, streamOutwards, subtract, unpackLongX, unpackLongY, unpackLongZ, up, up, west, west, withY
Methods inherited from class net.minecraft.util.math.Vec3i
compareTo, equals, getComponentAlongAxis, getManhattanDistance, getSquaredDistance, getSquaredDistance, getSquaredDistance, getSquaredDistance, getX, getY, getZ, hashCode, isWithinDistance, isWithinDistance, toShortString, toString
-
Constructor Details
-
Mutable
public Mutable() -
Mutable
public Mutable(int x, int y, int z)- Mappings:
Namespace Name Mixin selector official <init>
Lgs;<init>(III)V
intermediary <init>
Lnet/minecraft/class_2382;<init>(III)V
named <init>
Lnet/minecraft/util/math/Vec3i;<init>(III)V
-
Mutable
public Mutable(double x, double y, double z)- Mappings:
Namespace Name Mixin selector official <init>
Lgs;<init>(DDD)V
intermediary <init>
Lnet/minecraft/class_2382;<init>(DDD)V
named <init>
Lnet/minecraft/util/math/Vec3i;<init>(DDD)V
-
-
Method Details
-
add
-
add
-
offset
- Overrides:
offset
in classBlockPos
- Mappings:
Namespace Name Mixin selector official method_10079
Lfx$a;method_10079(Lgc;I)Lfx;
intermediary method_10079
Lnet/minecraft/class_2338$class_2339;method_10079(Lnet/minecraft/class_2350;I)Lnet/minecraft/class_2338;
named offset
Lnet/minecraft/util/math/BlockPos$Mutable;offset(Lnet/minecraft/util/math/Direction;I)Lnet/minecraft/util/math/BlockPos;
-
offset
- Overrides:
offset
in classBlockPos
- Mappings:
Namespace Name Mixin selector official a
Lfx;a(Lgc$a;I)Lfx;
intermediary method_30513
Lnet/minecraft/class_2338;method_30513(Lnet/minecraft/class_2350$class_2351;I)Lnet/minecraft/class_2338;
named offset
Lnet/minecraft/util/math/BlockPos;offset(Lnet/minecraft/util/math/Direction$Axis;I)Lnet/minecraft/util/math/BlockPos;
-
rotate
- Overrides:
rotate
in classBlockPos
- Mappings:
Namespace Name Mixin selector official a
Lfx;a(Lccm;)Lfx;
intermediary method_10070
Lnet/minecraft/class_2338;method_10070(Lnet/minecraft/class_2470;)Lnet/minecraft/class_2338;
named rotate
Lnet/minecraft/util/math/BlockPos;rotate(Lnet/minecraft/util/BlockRotation;)Lnet/minecraft/util/math/BlockPos;
-
set
Sets the x, y, and z of this mutable block position.- Mappings:
Namespace Name Mixin selector official d
Lfx$a;d(III)Lfx$a;
intermediary method_10103
Lnet/minecraft/class_2338$class_2339;method_10103(III)Lnet/minecraft/class_2338$class_2339;
named set
Lnet/minecraft/util/math/BlockPos$Mutable;set(III)Lnet/minecraft/util/math/BlockPos$Mutable;
-
set
- Mappings:
Namespace Name Mixin selector official c
Lfx$a;c(DDD)Lfx$a;
intermediary method_10102
Lnet/minecraft/class_2338$class_2339;method_10102(DDD)Lnet/minecraft/class_2338$class_2339;
named set
Lnet/minecraft/util/math/BlockPos$Mutable;set(DDD)Lnet/minecraft/util/math/BlockPos$Mutable;
-
set
- Mappings:
Namespace Name Mixin selector official g
Lfx$a;g(Lgs;)Lfx$a;
intermediary method_10101
Lnet/minecraft/class_2338$class_2339;method_10101(Lnet/minecraft/class_2382;)Lnet/minecraft/class_2338$class_2339;
named set
Lnet/minecraft/util/math/BlockPos$Mutable;set(Lnet/minecraft/util/math/Vec3i;)Lnet/minecraft/util/math/BlockPos$Mutable;
-
set
- Mappings:
Namespace Name Mixin selector official f
Lfx$a;f(J)Lfx$a;
intermediary method_16363
Lnet/minecraft/class_2338$class_2339;method_16363(J)Lnet/minecraft/class_2338$class_2339;
named set
Lnet/minecraft/util/math/BlockPos$Mutable;set(J)Lnet/minecraft/util/math/BlockPos$Mutable;
-
set
- Mappings:
Namespace Name Mixin selector official a
Lfx$a;a(Lfv;III)Lfx$a;
intermediary method_17965
Lnet/minecraft/class_2338$class_2339;method_17965(Lnet/minecraft/class_2335;III)Lnet/minecraft/class_2338$class_2339;
named set
Lnet/minecraft/util/math/BlockPos$Mutable;set(Lnet/minecraft/util/math/AxisCycleDirection;III)Lnet/minecraft/util/math/BlockPos$Mutable;
-
set
Sets this mutable block position to the offset position of the given pos by the given direction.- Mappings:
Namespace Name Mixin selector official a
Lfx$a;a(Lgs;Lgc;)Lfx$a;
intermediary method_25505
Lnet/minecraft/class_2338$class_2339;method_25505(Lnet/minecraft/class_2382;Lnet/minecraft/class_2350;)Lnet/minecraft/class_2338$class_2339;
named set
Lnet/minecraft/util/math/BlockPos$Mutable;set(Lnet/minecraft/util/math/Vec3i;Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/math/BlockPos$Mutable;
-
set
Sets this mutable block position to the sum of the given position and the given x, y, and z.- Mappings:
Namespace Name Mixin selector official a
Lfx$a;a(Lgs;III)Lfx$a;
intermediary method_25504
Lnet/minecraft/class_2338$class_2339;method_25504(Lnet/minecraft/class_2382;III)Lnet/minecraft/class_2338$class_2339;
named set
Lnet/minecraft/util/math/BlockPos$Mutable;set(Lnet/minecraft/util/math/Vec3i;III)Lnet/minecraft/util/math/BlockPos$Mutable;
-
move
Moves this mutable block position by 1 block in the given direction.- Mappings:
Namespace Name Mixin selector official c
Lfx$a;c(Lgc;)Lfx$a;
intermediary method_10098
Lnet/minecraft/class_2338$class_2339;method_10098(Lnet/minecraft/class_2350;)Lnet/minecraft/class_2338$class_2339;
named move
Lnet/minecraft/util/math/BlockPos$Mutable;move(Lnet/minecraft/util/math/Direction;)Lnet/minecraft/util/math/BlockPos$Mutable;
-
move
Moves this mutable block position by the given distance in the given direction.- Mappings:
Namespace Name Mixin selector official c
Lfx$a;c(Lgc;I)Lfx$a;
intermediary method_10104
Lnet/minecraft/class_2338$class_2339;method_10104(Lnet/minecraft/class_2350;I)Lnet/minecraft/class_2338$class_2339;
named move
Lnet/minecraft/util/math/BlockPos$Mutable;move(Lnet/minecraft/util/math/Direction;I)Lnet/minecraft/util/math/BlockPos$Mutable;
-
move
Moves the mutable block position by the delta x, y, and z provided.- Mappings:
Namespace Name Mixin selector official e
Lfx$a;e(III)Lfx$a;
intermediary method_10100
Lnet/minecraft/class_2338$class_2339;method_10100(III)Lnet/minecraft/class_2338$class_2339;
named move
Lnet/minecraft/util/math/BlockPos$Mutable;move(III)Lnet/minecraft/util/math/BlockPos$Mutable;
-
move
- Mappings:
Namespace Name Mixin selector official h
Lfx$a;h(Lgs;)Lfx$a;
intermediary method_30927
Lnet/minecraft/class_2338$class_2339;method_30927(Lnet/minecraft/class_2382;)Lnet/minecraft/class_2338$class_2339;
named move
Lnet/minecraft/util/math/BlockPos$Mutable;move(Lnet/minecraft/util/math/Vec3i;)Lnet/minecraft/util/math/BlockPos$Mutable;
-
clamp
Clamps the component corresponding to the givenaxis
betweenmin
andmax
.- Mappings:
Namespace Name Mixin selector official a
Lfx$a;a(Lgc$a;II)Lfx$a;
intermediary method_27158
Lnet/minecraft/class_2338$class_2339;method_27158(Lnet/minecraft/class_2350$class_2351;II)Lnet/minecraft/class_2338$class_2339;
named clamp
Lnet/minecraft/util/math/BlockPos$Mutable;clamp(Lnet/minecraft/util/math/Direction$Axis;II)Lnet/minecraft/util/math/BlockPos$Mutable;
-
setX
- Overrides:
setX
in classVec3i
- Mappings:
Namespace Name Mixin selector official p
Lfx$a;p(I)Lfx$a;
intermediary method_33097
Lnet/minecraft/class_2338$class_2339;method_33097(I)Lnet/minecraft/class_2338$class_2339;
named setX
Lnet/minecraft/util/math/BlockPos$Mutable;setX(I)Lnet/minecraft/util/math/BlockPos$Mutable;
-
setY
- Overrides:
setY
in classVec3i
- Mappings:
Namespace Name Mixin selector official q
Lfx$a;q(I)Lfx$a;
intermediary method_33098
Lnet/minecraft/class_2338$class_2339;method_33098(I)Lnet/minecraft/class_2338$class_2339;
named setY
Lnet/minecraft/util/math/BlockPos$Mutable;setY(I)Lnet/minecraft/util/math/BlockPos$Mutable;
-
setZ
- Overrides:
setZ
in classVec3i
- Mappings:
Namespace Name Mixin selector official r
Lfx$a;r(I)Lfx$a;
intermediary method_33099
Lnet/minecraft/class_2338$class_2339;method_33099(I)Lnet/minecraft/class_2338$class_2339;
named setZ
Lnet/minecraft/util/math/BlockPos$Mutable;setZ(I)Lnet/minecraft/util/math/BlockPos$Mutable;
-
toImmutable
Returns an immutable block position with the same x, y, and z as this position.This method should be called when a block position is used as map keys as to prevent side effects of mutations of mutable block positions.
- Overrides:
toImmutable
in classBlockPos
- Mappings:
Namespace Name Mixin selector official h
Lfx;h()Lfx;
intermediary method_10062
Lnet/minecraft/class_2338;method_10062()Lnet/minecraft/class_2338;
named toImmutable
Lnet/minecraft/util/math/BlockPos;toImmutable()Lnet/minecraft/util/math/BlockPos;
-