Class BlockPos.Mutable

All Implemented Interfaces:
Comparable<Vec3i>
Enclosing class:
BlockPos

public static class BlockPos.Mutable extends BlockPos
Mappings:
Namespace Name
official gh$a
intermediary net/minecraft/class_2338$class_2339
named net/minecraft/util/math/BlockPos$Mutable
  • Constructor Details

    • Mutable

      public Mutable()
    • Mutable

      public Mutable(int x, int y, int z)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lhc;<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> Lhc;<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

      public BlockPos add(double double2, double double3, double double4)
      Overrides:
      add in class BlockPos
      Mappings:
      Namespace Name Mixin selector
      official method_10080 Lgh$a;method_10080(DDD)Lgh;
      intermediary method_10080 Lnet/minecraft/class_2338$class_2339;method_10080(DDD)Lnet/minecraft/class_2338;
      named add Lnet/minecraft/util/math/BlockPos$Mutable;add(DDD)Lnet/minecraft/util/math/BlockPos;
    • add

      public BlockPos add(int int2, int int3, int int4)
      Description copied from class: Vec3i
      Returns 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.

      Overrides:
      add in class BlockPos
      Mappings:
      Namespace Name Mixin selector
      official method_10069 Lgh$a;method_10069(III)Lgh;
      intermediary method_10069 Lnet/minecraft/class_2338$class_2339;method_10069(III)Lnet/minecraft/class_2338;
      named add Lnet/minecraft/util/math/BlockPos$Mutable;add(III)Lnet/minecraft/util/math/BlockPos;
    • multiply

      public BlockPos multiply(int int2)
      Overrides:
      multiply in class BlockPos
      Mappings:
      Namespace Name Mixin selector
      official method_35830 Lgh$a;method_35830(I)Lgh;
      intermediary method_35830 Lnet/minecraft/class_2338$class_2339;method_35830(I)Lnet/minecraft/class_2338;
      named multiply Lnet/minecraft/util/math/BlockPos$Mutable;multiply(I)Lnet/minecraft/util/math/BlockPos;
    • offset

      public BlockPos offset(Direction direction, int int2)
      Overrides:
      offset in class BlockPos
      Mappings:
      Namespace Name Mixin selector
      official method_10079 Lgh$a;method_10079(Lgm;I)Lgh;
      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

      public BlockPos offset(Direction.Axis axis, int int2)
      Overrides:
      offset in class BlockPos
      Mappings:
      Namespace Name Mixin selector
      official method_30513 Lgh$a;method_30513(Lgm$a;I)Lgh;
      intermediary method_30513 Lnet/minecraft/class_2338$class_2339;method_30513(Lnet/minecraft/class_2350$class_2351;I)Lnet/minecraft/class_2338;
      named offset Lnet/minecraft/util/math/BlockPos$Mutable;offset(Lnet/minecraft/util/math/Direction$Axis;I)Lnet/minecraft/util/math/BlockPos;
    • rotate

      public BlockPos rotate(BlockRotation rotation)
      Overrides:
      rotate in class BlockPos
      Mappings:
      Namespace Name Mixin selector
      official a Lgh;a(Lcin;)Lgh;
      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

      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 d Lgh$a;d(III)Lgh$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

      public BlockPos.Mutable set(double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      official c Lgh$a;c(DDD)Lgh$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

      public BlockPos.Mutable set(Vec3i pos)
      Mappings:
      Namespace Name Mixin selector
      official g Lgh$a;g(Lhc;)Lgh$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

      public BlockPos.Mutable set(long pos)
      Mappings:
      Namespace Name Mixin selector
      official f Lgh$a;f(J)Lgh$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

      public BlockPos.Mutable set(AxisCycleDirection axis, int x, int y, int z)
      Mappings:
      Namespace Name Mixin selector
      official a Lgh$a;a(Lgf;III)Lgh$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

      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 a Lgh$a;a(Lhc;Lgm;)Lgh$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

      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 a Lgh$a;a(Lhc;III)Lgh$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;
    • 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 a Lgh$a;a(Lhc;Lhc;)Lgh$a;
      intermediary method_35831 Lnet/minecraft/class_2338$class_2339;method_35831(Lnet/minecraft/class_2382;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/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 c Lgh$a;c(Lgm;)Lgh$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

      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 c Lgh$a;c(Lgm;I)Lgh$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

      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 e Lgh$a;e(III)Lgh$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

      public BlockPos.Mutable move(Vec3i vec)
      Mappings:
      Namespace Name Mixin selector
      official h Lgh$a;h(Lhc;)Lgh$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

      public BlockPos.Mutable clamp(Direction.Axis axis, int min, int max)
      Clamps the component corresponding to the given axis between min and max.
      Mappings:
      Namespace Name Mixin selector
      official a Lgh$a;a(Lgm$a;II)Lgh$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

      public BlockPos.Mutable setX(int int2)
      Overrides:
      setX in class Vec3i
      Mappings:
      Namespace Name Mixin selector
      official p Lgh$a;p(I)Lgh$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

      public BlockPos.Mutable setY(int int2)
      Overrides:
      setY in class Vec3i
      Mappings:
      Namespace Name Mixin selector
      official q Lgh$a;q(I)Lgh$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

      public BlockPos.Mutable setZ(int int2)
      Overrides:
      setZ in class Vec3i
      Mappings:
      Namespace Name Mixin selector
      official r Lgh$a;r(I)Lgh$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

      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.

      Overrides:
      toImmutable in class BlockPos
      Mappings:
      Namespace Name Mixin selector
      official h Lgh;h()Lgh;
      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;