Package net.minecraft.util.math
Record Class ImmutableBlockBox
java.lang.Object
java.lang.Record
net.minecraft.util.math.ImmutableBlockBox
- Record Components:
min-max-
public record ImmutableBlockBox(BlockPos min, BlockPos max)
extends Record
implements Iterable<BlockPos>
- Mappings:
Namespace Name named net/minecraft/util/math/ImmutableBlockBoxintermediary net/minecraft/class_9380official jbnamed minintermediary comp_2466official bnamed maxintermediary comp_2467official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockPosThe field for themaxrecord component.private final BlockPosThe field for theminrecord component.static final PacketCodec<ByteBuf, ImmutableBlockBox> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intintintfinal inthashCode()Returns a hash code value for this object.booleanbooleaniterator()max()Returns the value of themaxrecord component.min()Returns the value of theminrecord component.static ImmutableBlockBoxstatic ImmutableBlockBoxfinal StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
min
The field for theminrecord component. -
max
The field for themaxrecord component. -
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/util/math/ImmutableBlockBox;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_49907Lnet/minecraft/class_9380;field_49907:Lnet/minecraft/class_9139;official aLjb;a:Lyx;
-
-
Constructor Details
-
ImmutableBlockBox
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/util/math/ImmutableBlockBox;<init>(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Vintermediary <init>Lnet/minecraft/class_9380;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Vofficial <init>Ljb;<init>(Ljd;Ljd;)V
-
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector named ofLnet/minecraft/util/math/ImmutableBlockBox;of(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/ImmutableBlockBox;intermediary method_58236Lnet/minecraft/class_9380;method_58236(Lnet/minecraft/class_2338;)Lnet/minecraft/class_9380;official aLjb;a(Ljd;)Ljb;
-
of
- Mappings:
Namespace Name Mixin selector named ofLnet/minecraft/util/math/ImmutableBlockBox;of(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/ImmutableBlockBox;intermediary method_58237Lnet/minecraft/class_9380;method_58237(Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Lnet/minecraft/class_9380;official aLjb;a(Ljd;Ljd;)Ljb;
-
encompass
- Mappings:
Namespace Name Mixin selector named encompassLnet/minecraft/util/math/ImmutableBlockBox;encompass(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/ImmutableBlockBox;intermediary method_58241Lnet/minecraft/class_9380;method_58241(Lnet/minecraft/class_2338;)Lnet/minecraft/class_9380;official bLjb;b(Ljd;)Ljb;
-
isSingleBlock
public boolean isSingleBlock()- Mappings:
Namespace Name Mixin selector named isSingleBlockLnet/minecraft/util/math/ImmutableBlockBox;isSingleBlock()Zintermediary method_58235Lnet/minecraft/class_9380;method_58235()Zofficial aLjb;a()Z
-
includes
- Mappings:
Namespace Name Mixin selector named includesLnet/minecraft/util/math/ImmutableBlockBox;includes(Lnet/minecraft/util/math/BlockPos;)Zintermediary method_58244Lnet/minecraft/class_9380;method_58244(Lnet/minecraft/class_2338;)Zofficial cLjb;c(Ljd;)Z
-
enclosingBox
- Mappings:
Namespace Name Mixin selector named enclosingBoxLnet/minecraft/util/math/ImmutableBlockBox;enclosingBox()Lnet/minecraft/util/math/Box;intermediary method_58240Lnet/minecraft/class_9380;method_58240()Lnet/minecraft/class_238;official bLjb;b()Lewx;
-
iterator
-
getBlockCountX
public int getBlockCountX()- Mappings:
Namespace Name Mixin selector named getBlockCountXLnet/minecraft/util/math/ImmutableBlockBox;getBlockCountX()Iintermediary method_58243Lnet/minecraft/class_9380;method_58243()Iofficial cLjb;c()I
-
getBlockCountY
public int getBlockCountY()- Mappings:
Namespace Name Mixin selector named getBlockCountYLnet/minecraft/util/math/ImmutableBlockBox;getBlockCountY()Iintermediary method_58245Lnet/minecraft/class_9380;method_58245()Iofficial dLjb;d()I
-
getBlockCountZ
public int getBlockCountZ()- Mappings:
Namespace Name Mixin selector named getBlockCountZLnet/minecraft/util/math/ImmutableBlockBox;getBlockCountZ()Iintermediary method_58246Lnet/minecraft/class_9380;method_58246()Iofficial eLjb;e()I
-
expand
- Mappings:
Namespace Name Mixin selector named expandLnet/minecraft/util/math/ImmutableBlockBox;expand(Lnet/minecraft/util/math/Direction;I)Lnet/minecraft/util/math/ImmutableBlockBox;intermediary method_58238Lnet/minecraft/class_9380;method_58238(Lnet/minecraft/class_2350;I)Lnet/minecraft/class_9380;official aLjb;a(Lji;I)Ljb;
-
move
- Mappings:
Namespace Name Mixin selector named moveLnet/minecraft/util/math/ImmutableBlockBox;move(Lnet/minecraft/util/math/Direction;I)Lnet/minecraft/util/math/ImmutableBlockBox;intermediary method_58242Lnet/minecraft/class_9380;method_58242(Lnet/minecraft/class_2350;I)Lnet/minecraft/class_9380;official bLjb;b(Lji;I)Ljb;
-
move
- Mappings:
Namespace Name Mixin selector named moveLnet/minecraft/util/math/ImmutableBlockBox;move(Lnet/minecraft/util/math/Vec3i;)Lnet/minecraft/util/math/ImmutableBlockBox;intermediary method_58239Lnet/minecraft/class_9380;method_58239(Lnet/minecraft/class_2382;)Lnet/minecraft/class_9380;official aLjb;a(Lkh;)Ljb;
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
min
Returns the value of theminrecord component.- Returns:
- the value of the
minrecord component
-
max
Returns the value of themaxrecord component.- Returns:
- the value of the
maxrecord component
-