Record Class ImmutableBlockBox

java.lang.Object
java.lang.Record
net.minecraft.util.math.ImmutableBlockBox
Record Components:
min -
max -
All Implemented Interfaces:
Iterable<BlockPos>

public record ImmutableBlockBox(BlockPos min, BlockPos max) extends Record implements Iterable<BlockPos>
Mappings:
Namespace Name
official il
intermediary net/minecraft/class_9380
named net/minecraft/util/math/ImmutableBlockBox
official b
intermediary comp_2466
named min
official c
intermediary comp_2467
named max
  • Field Details

    • min

      private final BlockPos min
      The field for the min record component.
    • max

      private final BlockPos max
      The field for the max record component.
    • PACKET_CODEC

      public static final PacketCodec<ByteBuf,ImmutableBlockBox> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lil;a:Lys;
      intermediary field_49907 Lnet/minecraft/class_9380;field_49907:Lnet/minecraft/class_9139;
      named PACKET_CODEC Lnet/minecraft/util/math/ImmutableBlockBox;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
  • Constructor Details

    • ImmutableBlockBox

      public ImmutableBlockBox(BlockPos first, BlockPos second)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lil;<init>(Lin;Lin;)V
      intermediary <init> Lnet/minecraft/class_9380;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)V
      named <init> Lnet/minecraft/util/math/ImmutableBlockBox;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)V
  • Method Details

    • of

      public static ImmutableBlockBox of(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lil;a(Lin;)Lil;
      intermediary method_58236 Lnet/minecraft/class_9380;method_58236(Lnet/minecraft/class_2338;)Lnet/minecraft/class_9380;
      named of Lnet/minecraft/util/math/ImmutableBlockBox;of(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/ImmutableBlockBox;
    • of

      public static ImmutableBlockBox of(BlockPos first, BlockPos second)
      Mappings:
      Namespace Name Mixin selector
      official a Lil;a(Lin;Lin;)Lil;
      intermediary method_58237 Lnet/minecraft/class_9380;method_58237(Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Lnet/minecraft/class_9380;
      named of Lnet/minecraft/util/math/ImmutableBlockBox;of(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/ImmutableBlockBox;
    • encompass

      public ImmutableBlockBox encompass(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official b Lil;b(Lin;)Lil;
      intermediary method_58241 Lnet/minecraft/class_9380;method_58241(Lnet/minecraft/class_2338;)Lnet/minecraft/class_9380;
      named encompass Lnet/minecraft/util/math/ImmutableBlockBox;encompass(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/ImmutableBlockBox;
    • isSingleBlock

      public boolean isSingleBlock()
      Mappings:
      Namespace Name Mixin selector
      official a Lil;a()Z
      intermediary method_58235 Lnet/minecraft/class_9380;method_58235()Z
      named isSingleBlock Lnet/minecraft/util/math/ImmutableBlockBox;isSingleBlock()Z
    • includes

      public boolean includes(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official c Lil;c(Lin;)Z
      intermediary method_58244 Lnet/minecraft/class_9380;method_58244(Lnet/minecraft/class_2338;)Z
      named includes Lnet/minecraft/util/math/ImmutableBlockBox;includes(Lnet/minecraft/util/math/BlockPos;)Z
    • enclosingBox

      public Box enclosingBox()
      Mappings:
      Namespace Name Mixin selector
      official b Lil;b()Letk;
      intermediary method_58240 Lnet/minecraft/class_9380;method_58240()Lnet/minecraft/class_238;
      named enclosingBox Lnet/minecraft/util/math/ImmutableBlockBox;enclosingBox()Lnet/minecraft/util/math/Box;
    • iterator

      public Iterator<BlockPos> iterator()
      Specified by:
      iterator in interface Iterable<BlockPos>
    • getBlockCountX

      public int getBlockCountX()
      Mappings:
      Namespace Name Mixin selector
      official c Lil;c()I
      intermediary method_58243 Lnet/minecraft/class_9380;method_58243()I
      named getBlockCountX Lnet/minecraft/util/math/ImmutableBlockBox;getBlockCountX()I
    • getBlockCountY

      public int getBlockCountY()
      Mappings:
      Namespace Name Mixin selector
      official d Lil;d()I
      intermediary method_58245 Lnet/minecraft/class_9380;method_58245()I
      named getBlockCountY Lnet/minecraft/util/math/ImmutableBlockBox;getBlockCountY()I
    • getBlockCountZ

      public int getBlockCountZ()
      Mappings:
      Namespace Name Mixin selector
      official e Lil;e()I
      intermediary method_58246 Lnet/minecraft/class_9380;method_58246()I
      named getBlockCountZ Lnet/minecraft/util/math/ImmutableBlockBox;getBlockCountZ()I
    • expand

      public ImmutableBlockBox expand(Direction direction, int offset)
      Mappings:
      Namespace Name Mixin selector
      official a Lil;a(Lis;I)Lil;
      intermediary method_58238 Lnet/minecraft/class_9380;method_58238(Lnet/minecraft/class_2350;I)Lnet/minecraft/class_9380;
      named expand Lnet/minecraft/util/math/ImmutableBlockBox;expand(Lnet/minecraft/util/math/Direction;I)Lnet/minecraft/util/math/ImmutableBlockBox;
    • move

      public ImmutableBlockBox move(Direction direction, int offset)
      Mappings:
      Namespace Name Mixin selector
      official b Lil;b(Lis;I)Lil;
      intermediary method_58242 Lnet/minecraft/class_9380;method_58242(Lnet/minecraft/class_2350;I)Lnet/minecraft/class_9380;
      named move Lnet/minecraft/util/math/ImmutableBlockBox;move(Lnet/minecraft/util/math/Direction;I)Lnet/minecraft/util/math/ImmutableBlockBox;
    • move

      public ImmutableBlockBox move(Vec3i offset)
      Mappings:
      Namespace Name Mixin selector
      official a Lil;a(Ljr;)Lil;
      intermediary method_58239 Lnet/minecraft/class_9380;method_58239(Lnet/minecraft/class_2382;)Lnet/minecraft/class_9380;
      named move Lnet/minecraft/util/math/ImmutableBlockBox;move(Lnet/minecraft/util/math/Vec3i;)Lnet/minecraft/util/math/ImmutableBlockBox;
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • min

      public BlockPos min()
      Returns the value of the min record component.
      Returns:
      the value of the min record component
    • max

      public BlockPos max()
      Returns the value of the max record component.
      Returns:
      the value of the max record component