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/ImmutableBlockBox
intermediary net/minecraft/class_9380
official ix
named min
intermediary comp_2466
official b
named max
intermediary comp_2467
official c
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BlockPos
The field for themax
record component.private final BlockPos
The field for themin
record component.static final PacketCodec
<ByteBuf, ImmutableBlockBox> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.int
int
int
final int
hashCode()
Returns a hash code value for this object.boolean
boolean
iterator()
max()
Returns the value of themax
record component.min()
Returns the value of themin
record component.static ImmutableBlockBox
static ImmutableBlockBox
final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
min
The field for themin
record component. -
max
The field for themax
record component. -
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODEC
Lnet/minecraft/util/math/ImmutableBlockBox;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_49907
Lnet/minecraft/class_9380;field_49907:Lnet/minecraft/class_9139;
official a
Lix;a:Lzn;
-
-
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;)V
intermediary <init>
Lnet/minecraft/class_9380;<init>(Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)V
official <init>
Lix;<init>(Liz;Liz;)V
-
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector named of
Lnet/minecraft/util/math/ImmutableBlockBox;of(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/ImmutableBlockBox;
intermediary method_58236
Lnet/minecraft/class_9380;method_58236(Lnet/minecraft/class_2338;)Lnet/minecraft/class_9380;
official a
Lix;a(Liz;)Lix;
-
of
- Mappings:
Namespace Name Mixin selector named of
Lnet/minecraft/util/math/ImmutableBlockBox;of(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/ImmutableBlockBox;
intermediary method_58237
Lnet/minecraft/class_9380;method_58237(Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Lnet/minecraft/class_9380;
official a
Lix;a(Liz;Liz;)Lix;
-
encompass
- Mappings:
Namespace Name Mixin selector named encompass
Lnet/minecraft/util/math/ImmutableBlockBox;encompass(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/ImmutableBlockBox;
intermediary method_58241
Lnet/minecraft/class_9380;method_58241(Lnet/minecraft/class_2338;)Lnet/minecraft/class_9380;
official b
Lix;b(Liz;)Lix;
-
isSingleBlock
public boolean isSingleBlock()- Mappings:
Namespace Name Mixin selector named isSingleBlock
Lnet/minecraft/util/math/ImmutableBlockBox;isSingleBlock()Z
intermediary method_58235
Lnet/minecraft/class_9380;method_58235()Z
official a
Lix;a()Z
-
includes
- Mappings:
Namespace Name Mixin selector named includes
Lnet/minecraft/util/math/ImmutableBlockBox;includes(Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_58244
Lnet/minecraft/class_9380;method_58244(Lnet/minecraft/class_2338;)Z
official c
Lix;c(Liz;)Z
-
enclosingBox
- Mappings:
Namespace Name Mixin selector named enclosingBox
Lnet/minecraft/util/math/ImmutableBlockBox;enclosingBox()Lnet/minecraft/util/math/Box;
intermediary method_58240
Lnet/minecraft/class_9380;method_58240()Lnet/minecraft/class_238;
official b
Lix;b()Levn;
-
iterator
-
getBlockCountX
public int getBlockCountX()- Mappings:
Namespace Name Mixin selector named getBlockCountX
Lnet/minecraft/util/math/ImmutableBlockBox;getBlockCountX()I
intermediary method_58243
Lnet/minecraft/class_9380;method_58243()I
official c
Lix;c()I
-
getBlockCountY
public int getBlockCountY()- Mappings:
Namespace Name Mixin selector named getBlockCountY
Lnet/minecraft/util/math/ImmutableBlockBox;getBlockCountY()I
intermediary method_58245
Lnet/minecraft/class_9380;method_58245()I
official d
Lix;d()I
-
getBlockCountZ
public int getBlockCountZ()- Mappings:
Namespace Name Mixin selector named getBlockCountZ
Lnet/minecraft/util/math/ImmutableBlockBox;getBlockCountZ()I
intermediary method_58246
Lnet/minecraft/class_9380;method_58246()I
official e
Lix;e()I
-
expand
- Mappings:
Namespace Name Mixin selector named expand
Lnet/minecraft/util/math/ImmutableBlockBox;expand(Lnet/minecraft/util/math/Direction;I)Lnet/minecraft/util/math/ImmutableBlockBox;
intermediary method_58238
Lnet/minecraft/class_9380;method_58238(Lnet/minecraft/class_2350;I)Lnet/minecraft/class_9380;
official a
Lix;a(Lje;I)Lix;
-
move
- Mappings:
Namespace Name Mixin selector named move
Lnet/minecraft/util/math/ImmutableBlockBox;move(Lnet/minecraft/util/math/Direction;I)Lnet/minecraft/util/math/ImmutableBlockBox;
intermediary method_58242
Lnet/minecraft/class_9380;method_58242(Lnet/minecraft/class_2350;I)Lnet/minecraft/class_9380;
official b
Lix;b(Lje;I)Lix;
-
move
- Mappings:
Namespace Name Mixin selector named move
Lnet/minecraft/util/math/ImmutableBlockBox;move(Lnet/minecraft/util/math/Vec3i;)Lnet/minecraft/util/math/ImmutableBlockBox;
intermediary method_58239
Lnet/minecraft/class_9380;method_58239(Lnet/minecraft/class_2382;)Lnet/minecraft/class_9380;
official a
Lix;a(Lkd;)Lix;
-
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 themin
record component.- Returns:
- the value of the
min
record component
-
max
Returns the value of themax
record component.- Returns:
- the value of the
max
record component
-