类 BlockPos.Mutable
- java.lang.Object
-
- net.minecraft.util.math.Vec3i
-
- net.minecraft.util.math.BlockPos
-
- net.minecraft.util.math.BlockPos.Mutable
-
- 所有已实现的接口:
Comparable<Vec3i>
- 封闭类:
- BlockPos
public static class BlockPos.Mutable extends BlockPos
- Mappings:
Namespace Name official gb$aintermediary net/minecraft/class_2338$class_2339named net/minecraft/util/math/BlockPos$Mutable
-
-
嵌套类概要
-
从类继承的嵌套类/接口 net.minecraft.util.math.BlockPos
BlockPos.Mutable
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 BlockPosadd(double double2, double double3, double double4)BlockPosadd(int int2, int int3, int int4)Returns another Vec3i whose coordinates have the parameter x, y, and z added to the coordinates of this vector.BlockPos.Mutableclamp(Direction.Axis axis, int min, int max)Clamps the component corresponding to the givenaxisbetweenminandmax.BlockPos.Mutablemove(int dx, int dy, int dz)Moves the mutable block position by the delta x, y, and z provided.BlockPos.Mutablemove(Direction direction)Moves this mutable block position by 1 block in the given direction.BlockPos.Mutablemove(Direction direction, int distance)Moves this mutable block position by the given distance in the given direction.BlockPos.Mutablemove(Vec3i vec)BlockPosmultiply(int int2)BlockPosoffset(Direction.Axis axis, int int2)BlockPosoffset(Direction direction, int int2)BlockPosrotate(BlockRotation rotation)BlockPos.Mutableset(double x, double y, double z)BlockPos.Mutableset(int x, int y, int z)Sets the x, y, and z of this mutable block position.BlockPos.Mutableset(long pos)BlockPos.Mutableset(AxisCycleDirection axis, int x, int y, int z)BlockPos.Mutableset(Vec3i pos)BlockPos.Mutableset(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.Mutableset(Vec3i pos, Direction direction)Sets this mutable block position to the offset position of the given pos by the given direction.BlockPos.Mutableset(Vec3i vec1, Vec3i vec2)Sets this mutable block position to the sum of the given vectors.BlockPos.MutablesetX(int int2)BlockPos.MutablesetY(int int2)BlockPos.MutablesetZ(int int2)BlockPostoImmutable()Returns an immutable block position with the same x, y, and z as this position.-
从类继承的方法 net.minecraft.util.math.BlockPos
add, add, asLong, asLong, crossProduct, down, down, east, east, findClosest, fromLong, iterate, iterate, iterateInSquare, iterateOutwards, iterateRandomly, iterateRandomly, mutableCopy, north, north, offset, offset, removeChunkSectionLocalY, south, south, stream, stream, stream, stream, streamOutwards, subtract, unpackLongX, unpackLongY, unpackLongZ, up, up, west, west, withY
-
从类继承的方法 net.minecraft.util.math.Vec3i
compareTo, equals, getComponentAlongAxis, getManhattanDistance, getSquaredDistance, getSquaredDistance, getSquaredDistance, getSquaredDistance, getX, getY, getZ, hashCode, isWithinDistance, isWithinDistance, toShortString, toString
-
-
-
-
构造器详细资料
-
Mutable
public Mutable()
-
Mutable
public Mutable(int x, int y, int z)- Mappings:
Namespace Name Mixin selector official <init>Lgw;<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>Lgw;<init>(DDD)Vintermediary <init>Lnet/minecraft/class_2382;<init>(DDD)Vnamed <init>Lnet/minecraft/util/math/Vec3i;<init>(DDD)V
-
-
方法详细资料
-
add
public BlockPos add(double double2, double double3, double double4)
- 覆盖:
add在类中BlockPos- Mappings:
Namespace Name Mixin selector official method_10080Lgb$a;method_10080(DDD)Lgb;intermediary method_10080Lnet/minecraft/class_2338$class_2339;method_10080(DDD)Lnet/minecraft/class_2338;named addLnet/minecraft/util/math/BlockPos$Mutable;add(DDD)Lnet/minecraft/util/math/BlockPos;
-
add
public BlockPos add(int int2, int int3, int int4)
从类复制的说明:Vec3iReturns another Vec3i whose coordinates have the parameter x, y, and z added to the coordinates of this vector.This method always returns an immutable object.
- 覆盖:
add在类中BlockPos- Mappings:
Namespace Name Mixin selector official method_10069Lgb$a;method_10069(III)Lgb;intermediary method_10069Lnet/minecraft/class_2338$class_2339;method_10069(III)Lnet/minecraft/class_2338;named addLnet/minecraft/util/math/BlockPos$Mutable;add(III)Lnet/minecraft/util/math/BlockPos;
-
multiply
public BlockPos multiply(int int2)
- 覆盖:
multiply在类中BlockPos- Mappings:
Namespace Name Mixin selector official method_35830Lgb$a;method_35830(I)Lgb;intermediary method_35830Lnet/minecraft/class_2338$class_2339;method_35830(I)Lnet/minecraft/class_2338;named multiplyLnet/minecraft/util/math/BlockPos$Mutable;multiply(I)Lnet/minecraft/util/math/BlockPos;
-
offset
public BlockPos offset(Direction direction, int int2)
- 覆盖:
offset在类中BlockPos- Mappings:
Namespace Name Mixin selector official method_10079Lgb$a;method_10079(Lgg;I)Lgb;intermediary method_10079Lnet/minecraft/class_2338$class_2339;method_10079(Lnet/minecraft/class_2350;I)Lnet/minecraft/class_2338;named offsetLnet/minecraft/util/math/BlockPos$Mutable;offset(Lnet/minecraft/util/math/Direction;I)Lnet/minecraft/util/math/BlockPos;
-
offset
public BlockPos offset(Direction.Axis axis, int int2)
- 覆盖:
offset在类中BlockPos- Mappings:
Namespace Name Mixin selector official method_30513Lgb$a;method_30513(Lgg$a;I)Lgb;intermediary method_30513Lnet/minecraft/class_2338$class_2339;method_30513(Lnet/minecraft/class_2350$class_2351;I)Lnet/minecraft/class_2338;named offsetLnet/minecraft/util/math/BlockPos$Mutable;offset(Lnet/minecraft/util/math/Direction$Axis;I)Lnet/minecraft/util/math/BlockPos;
-
rotate
public BlockPos rotate(BlockRotation rotation)
- 覆盖:
rotate在类中BlockPos- Mappings:
Namespace Name Mixin selector official aLgb;a(Lcek;)Lgb;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
public BlockPos.Mutable set(int x, int y, int z)
Sets the x, y, and z of this mutable block position.- Mappings:
Namespace Name Mixin selector official dLgb$a;d(III)Lgb$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
public BlockPos.Mutable set(double x, double y, double z)
- Mappings:
Namespace Name Mixin selector official cLgb$a;c(DDD)Lgb$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
public BlockPos.Mutable set(Vec3i pos)
- Mappings:
Namespace Name Mixin selector official gLgb$a;g(Lgw;)Lgb$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
public BlockPos.Mutable set(long pos)
- Mappings:
Namespace Name Mixin selector official fLgb$a;f(J)Lgb$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
public BlockPos.Mutable set(AxisCycleDirection axis, int x, int y, int z)
- Mappings:
Namespace Name Mixin selector official aLgb$a;a(Lfz;III)Lgb$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
public BlockPos.Mutable set(Vec3i pos, Direction direction)
Sets this mutable block position to the offset position of the given pos by the given direction.- Mappings:
Namespace Name Mixin selector official aLgb$a;a(Lgw;Lgg;)Lgb$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
public 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.- Mappings:
Namespace Name Mixin selector official aLgb$a;a(Lgw;III)Lgb$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
public BlockPos.Mutable set(Vec3i vec1, Vec3i vec2)
Sets this mutable block position to the sum of the given vectors.- Mappings:
Namespace Name Mixin selector official aLgb$a;a(Lgw;Lgw;)Lgb$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
public BlockPos.Mutable move(Direction direction)
Moves this mutable block position by 1 block in the given direction.- Mappings:
Namespace Name Mixin selector official cLgb$a;c(Lgg;)Lgb$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
public BlockPos.Mutable move(Direction direction, int distance)
Moves this mutable block position by the given distance in the given direction.- Mappings:
Namespace Name Mixin selector official cLgb$a;c(Lgg;I)Lgb$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
public BlockPos.Mutable move(int dx, int dy, int dz)
Moves the mutable block position by the delta x, y, and z provided.- Mappings:
Namespace Name Mixin selector official eLgb$a;e(III)Lgb$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
public BlockPos.Mutable move(Vec3i vec)
- Mappings:
Namespace Name Mixin selector official hLgb$a;h(Lgw;)Lgb$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
public BlockPos.Mutable clamp(Direction.Axis axis, int min, int max)
Clamps the component corresponding to the givenaxisbetweenminandmax.- Mappings:
Namespace Name Mixin selector official aLgb$a;a(Lgg$a;II)Lgb$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;
-
setX
public BlockPos.Mutable setX(int int2)
- 覆盖:
setX在类中Vec3i- Mappings:
Namespace Name Mixin selector official pLgb$a;p(I)Lgb$a;intermediary method_33097Lnet/minecraft/class_2338$class_2339;method_33097(I)Lnet/minecraft/class_2338$class_2339;named setXLnet/minecraft/util/math/BlockPos$Mutable;setX(I)Lnet/minecraft/util/math/BlockPos$Mutable;
-
setY
public BlockPos.Mutable setY(int int2)
- 覆盖:
setY在类中Vec3i- Mappings:
Namespace Name Mixin selector official qLgb$a;q(I)Lgb$a;intermediary method_33098Lnet/minecraft/class_2338$class_2339;method_33098(I)Lnet/minecraft/class_2338$class_2339;named setYLnet/minecraft/util/math/BlockPos$Mutable;setY(I)Lnet/minecraft/util/math/BlockPos$Mutable;
-
setZ
public BlockPos.Mutable setZ(int int2)
- 覆盖:
setZ在类中Vec3i- Mappings:
Namespace Name Mixin selector official rLgb$a;r(I)Lgb$a;intermediary method_33099Lnet/minecraft/class_2338$class_2339;method_33099(I)Lnet/minecraft/class_2338$class_2339;named setZLnet/minecraft/util/math/BlockPos$Mutable;setZ(I)Lnet/minecraft/util/math/BlockPos$Mutable;
-
toImmutable
public BlockPos 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.
- 覆盖:
toImmutable在类中BlockPos- Mappings:
Namespace Name Mixin selector official hLgb;h()Lgb;intermediary method_10062Lnet/minecraft/class_2338;method_10062()Lnet/minecraft/class_2338;named toImmutableLnet/minecraft/util/math/BlockPos;toImmutable()Lnet/minecraft/util/math/BlockPos;
-
-