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
- Mappings:
Namespace Name official gr$aintermediary net/minecraft/class_2338$class_2339named 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclamp(Direction.Axis axis, int min, int max) Clamps the component corresponding to the givenaxisbetweenminandmax.method_10069(int int2, int int3, int int4) method_10079(Direction direction, int int2) method_10080(double double2, double double3, double double4) method_30513(Direction.Axis axis, int int2) method_33097(int int2) method_33098(int int2) method_33099(int int2) method_35830(int int2) move(int dx, int dy, int dz) Moves the mutable block position by the delta x, y, and z provided.Moves this mutable block position by 1 block in the given direction.Moves this mutable block position by the given distance in the given direction.rotate(BlockRotation rotation) set(double x, double y, double z) set(int x, int y, int z) Sets the x, y, and z of this mutable block position.set(long pos) set(AxisCycleDirection axis, 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.Sets this mutable block position to the offset position of the given pos by the given direction.Sets this mutable block position to the sum of the given vectors.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, asLong, asLong, crossProduct, east, east, findClosest, fromLong, iterate, iterate, iterateInSquare, iterateOutwards, iterateRandomly, iterateRandomly, method_10059, method_10074, method_10081, method_10087, method_10093, mutableCopy, north, north, offset, removeChunkSectionLocalY, south, south, stream, stream, stream, stream, streamOutwards, unpackLongX, unpackLongY, unpackLongZ, up, up, west, west, withYMethods inherited from class net.minecraft.util.math.Vec3i
add, add, add, createOffsetCodec, down, down, equals, getComponentAlongAxis, getManhattanDistance, getSquaredDistance, getSquaredDistance, getSquaredDistance, getSquaredDistanceFromCenter, getX, getY, getZ, hashCode, isWithinDistance, isWithinDistance, method_10265, multiply, offset, offset, offset, setX, setY, setZ, subtract, toShortString, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareTo
-
Constructor Details
-
Mutable
public Mutable() -
Mutable
public Mutable(int x, int y, int z) - Mappings:
Namespace Name Mixin selector official <init>Lhs;<init>(III)Vintermediary <init>Lnet/minecraft/class_2382;<init>(III)Vnamed <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>Lhs;<init>(DDD)Vintermediary <init>Lnet/minecraft/class_2382;<init>(DDD)Vnamed <init>Lnet/minecraft/util/math/Vec3i;<init>(DDD)V
-
-
Method Details
-
method_10080
- Overrides:
method_10080in classBlockPos- Mappings:
Namespace Name Mixin selector official aLgr;a(DDD)Lgr;intermediary method_10080Lnet/minecraft/class_2338;method_10080(DDD)Lnet/minecraft/class_2338;named method_10080Lnet/minecraft/util/math/BlockPos;method_10080(DDD)Lnet/minecraft/util/math/BlockPos;
-
method_10069
- Overrides:
method_10069in classBlockPos- Mappings:
Namespace Name Mixin selector official bLgr;b(III)Lgr;intermediary method_10069Lnet/minecraft/class_2338;method_10069(III)Lnet/minecraft/class_2338;named method_10069Lnet/minecraft/util/math/BlockPos;method_10069(III)Lnet/minecraft/util/math/BlockPos;
-
method_35830
- Overrides:
method_35830in classBlockPos- Mappings:
Namespace Name Mixin selector official aLgr;a(I)Lgr;intermediary method_35830Lnet/minecraft/class_2338;method_35830(I)Lnet/minecraft/class_2338;named method_35830Lnet/minecraft/util/math/BlockPos;method_35830(I)Lnet/minecraft/util/math/BlockPos;
-
method_10079
- Overrides:
method_10079in classBlockPos- Mappings:
Namespace Name Mixin selector official aLgr;a(Lgw;I)Lgr;intermediary method_10079Lnet/minecraft/class_2338;method_10079(Lnet/minecraft/class_2350;I)Lnet/minecraft/class_2338;named method_10079Lnet/minecraft/util/math/BlockPos;method_10079(Lnet/minecraft/util/math/Direction;I)Lnet/minecraft/util/math/BlockPos;
-
method_30513
- Overrides:
method_30513in classBlockPos- Mappings:
Namespace Name Mixin selector official aLgr;a(Lgw$a;I)Lgr;intermediary method_30513Lnet/minecraft/class_2338;method_30513(Lnet/minecraft/class_2350$class_2351;I)Lnet/minecraft/class_2338;named method_30513Lnet/minecraft/util/math/BlockPos;method_30513(Lnet/minecraft/util/math/Direction$Axis;I)Lnet/minecraft/util/math/BlockPos;
-
rotate
- Overrides:
rotatein classBlockPos- Mappings:
Namespace Name Mixin selector official aLgr;a(Lcsb;)Lgr;intermediary method_10070Lnet/minecraft/class_2338;method_10070(Lnet/minecraft/class_2470;)Lnet/minecraft/class_2338;named rotateLnet/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 dLgr$a;d(III)Lgr$a;intermediary method_10103Lnet/minecraft/class_2338$class_2339;method_10103(III)Lnet/minecraft/class_2338$class_2339;named setLnet/minecraft/util/math/BlockPos$Mutable;set(III)Lnet/minecraft/util/math/BlockPos$Mutable;
-
set
- Mappings:
Namespace Name Mixin selector official cLgr$a;c(DDD)Lgr$a;intermediary method_10102Lnet/minecraft/class_2338$class_2339;method_10102(DDD)Lnet/minecraft/class_2338$class_2339;named setLnet/minecraft/util/math/BlockPos$Mutable;set(DDD)Lnet/minecraft/util/math/BlockPos$Mutable;
-
set
- Mappings:
Namespace Name Mixin selector official gLgr$a;g(Lhs;)Lgr$a;intermediary method_10101Lnet/minecraft/class_2338$class_2339;method_10101(Lnet/minecraft/class_2382;)Lnet/minecraft/class_2338$class_2339;named setLnet/minecraft/util/math/BlockPos$Mutable;set(Lnet/minecraft/util/math/Vec3i;)Lnet/minecraft/util/math/BlockPos$Mutable;
-
set
- Mappings:
Namespace Name Mixin selector official fLgr$a;f(J)Lgr$a;intermediary method_16363Lnet/minecraft/class_2338$class_2339;method_16363(J)Lnet/minecraft/class_2338$class_2339;named setLnet/minecraft/util/math/BlockPos$Mutable;set(J)Lnet/minecraft/util/math/BlockPos$Mutable;
-
set
- Mappings:
Namespace Name Mixin selector official aLgr$a;a(Lgp;III)Lgr$a;intermediary method_17965Lnet/minecraft/class_2338$class_2339;method_17965(Lnet/minecraft/class_2335;III)Lnet/minecraft/class_2338$class_2339;named setLnet/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 aLgr$a;a(Lhs;Lgw;)Lgr$a;intermediary method_25505Lnet/minecraft/class_2338$class_2339;method_25505(Lnet/minecraft/class_2382;Lnet/minecraft/class_2350;)Lnet/minecraft/class_2338$class_2339;named setLnet/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 aLgr$a;a(Lhs;III)Lgr$a;intermediary method_25504Lnet/minecraft/class_2338$class_2339;method_25504(Lnet/minecraft/class_2382;III)Lnet/minecraft/class_2338$class_2339;named setLnet/minecraft/util/math/BlockPos$Mutable;set(Lnet/minecraft/util/math/Vec3i;III)Lnet/minecraft/util/math/BlockPos$Mutable;
-
set
Sets this mutable block position to the sum of the given vectors.- Mappings:
Namespace Name Mixin selector official aLgr$a;a(Lhs;Lhs;)Lgr$a;intermediary method_35831Lnet/minecraft/class_2338$class_2339;method_35831(Lnet/minecraft/class_2382;Lnet/minecraft/class_2382;)Lnet/minecraft/class_2338$class_2339;named setLnet/minecraft/util/math/BlockPos$Mutable;set(Lnet/minecraft/util/math/Vec3i;Lnet/minecraft/util/math/Vec3i;)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 cLgr$a;c(Lgw;)Lgr$a;intermediary method_10098Lnet/minecraft/class_2338$class_2339;method_10098(Lnet/minecraft/class_2350;)Lnet/minecraft/class_2338$class_2339;named moveLnet/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 cLgr$a;c(Lgw;I)Lgr$a;intermediary method_10104Lnet/minecraft/class_2338$class_2339;method_10104(Lnet/minecraft/class_2350;I)Lnet/minecraft/class_2338$class_2339;named moveLnet/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 eLgr$a;e(III)Lgr$a;intermediary method_10100Lnet/minecraft/class_2338$class_2339;method_10100(III)Lnet/minecraft/class_2338$class_2339;named moveLnet/minecraft/util/math/BlockPos$Mutable;move(III)Lnet/minecraft/util/math/BlockPos$Mutable;
-
move
- Mappings:
Namespace Name Mixin selector official hLgr$a;h(Lhs;)Lgr$a;intermediary method_30927Lnet/minecraft/class_2338$class_2339;method_30927(Lnet/minecraft/class_2382;)Lnet/minecraft/class_2338$class_2339;named moveLnet/minecraft/util/math/BlockPos$Mutable;move(Lnet/minecraft/util/math/Vec3i;)Lnet/minecraft/util/math/BlockPos$Mutable;
-
clamp
Clamps the component corresponding to the givenaxisbetweenminandmax.- Mappings:
Namespace Name Mixin selector official aLgr$a;a(Lgw$a;II)Lgr$a;intermediary method_27158Lnet/minecraft/class_2338$class_2339;method_27158(Lnet/minecraft/class_2350$class_2351;II)Lnet/minecraft/class_2338$class_2339;named clampLnet/minecraft/util/math/BlockPos$Mutable;clamp(Lnet/minecraft/util/math/Direction$Axis;II)Lnet/minecraft/util/math/BlockPos$Mutable;
-
method_33097
- Mappings:
Namespace Name Mixin selector official pLgr$a;p(I)Lgr$a;intermediary method_33097Lnet/minecraft/class_2338$class_2339;method_33097(I)Lnet/minecraft/class_2338$class_2339;named method_33097Lnet/minecraft/util/math/BlockPos$Mutable;method_33097(I)Lnet/minecraft/util/math/BlockPos$Mutable;
-
method_33098
- Mappings:
Namespace Name Mixin selector official qLgr$a;q(I)Lgr$a;intermediary method_33098Lnet/minecraft/class_2338$class_2339;method_33098(I)Lnet/minecraft/class_2338$class_2339;named method_33098Lnet/minecraft/util/math/BlockPos$Mutable;method_33098(I)Lnet/minecraft/util/math/BlockPos$Mutable;
-
method_33099
- Mappings:
Namespace Name Mixin selector official rLgr$a;r(I)Lgr$a;intermediary method_33099Lnet/minecraft/class_2338$class_2339;method_33099(I)Lnet/minecraft/class_2338$class_2339;named method_33099Lnet/minecraft/util/math/BlockPos$Mutable;method_33099(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:
toImmutablein classBlockPos- Mappings:
Namespace Name Mixin selector official hLgr;h()Lgr;intermediary method_10062Lnet/minecraft/class_2338;method_10062()Lnet/minecraft/class_2338;named toImmutableLnet/minecraft/util/math/BlockPos;toImmutable()Lnet/minecraft/util/math/BlockPos;
-