Package net.minecraft.util.math
Record Class BlockArea
java.lang.Object
java.lang.Record
net.minecraft.util.math.BlockArea
- Record Components:
min-max-
- Mappings:
Namespace Name official ikintermediary net/minecraft/class_9380named net/minecraft/util/math/BlockAreaofficial bintermediary comp_2466named minofficial cintermediary comp_2467named max
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasBox()booleanfinal booleanIndicates whether some other object is "equal to" this one.intgetSizeX()intgetSizeY()intgetSizeZ()final inthashCode()Returns a hash code value for this object.booleaniterator()max()Returns the value of themaxrecord component.min()Returns the value of theminrecord component.static BlockAreastatic BlockAreafinal 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 official aLik;a:Lyq;intermediary field_49907Lnet/minecraft/class_9380;field_49907:Lnet/minecraft/class_9139;named PACKET_CODECLnet/minecraft/util/math/BlockArea;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
-
-
Constructor Details
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector official aLik;a(Lim;)Lik;intermediary method_58236Lnet/minecraft/class_9380;method_58236(Lnet/minecraft/class_2338;)Lnet/minecraft/class_9380;named ofLnet/minecraft/util/math/BlockArea;of(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/BlockArea;
-
of
- Mappings:
Namespace Name Mixin selector official aLik;a(Lim;Lim;)Lik;intermediary method_58237Lnet/minecraft/class_9380;method_58237(Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Lnet/minecraft/class_9380;named ofLnet/minecraft/util/math/BlockArea;of(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/BlockArea;
-
extendTo
- Mappings:
Namespace Name Mixin selector official bLik;b(Lim;)Lik;intermediary method_58241Lnet/minecraft/class_9380;method_58241(Lnet/minecraft/class_2338;)Lnet/minecraft/class_9380;named extendToLnet/minecraft/util/math/BlockArea;extendTo(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/BlockArea;
-
isSingleBlock
public boolean isSingleBlock()- Mappings:
Namespace Name Mixin selector official aLik;a()Zintermediary method_58235Lnet/minecraft/class_9380;method_58235()Znamed isSingleBlockLnet/minecraft/util/math/BlockArea;isSingleBlock()Z
-
contains
- Mappings:
Namespace Name Mixin selector official cLik;c(Lim;)Zintermediary method_58244Lnet/minecraft/class_9380;method_58244(Lnet/minecraft/class_2338;)Znamed containsLnet/minecraft/util/math/BlockArea;contains(Lnet/minecraft/util/math/BlockPos;)Z
-
asBox
- Mappings:
Namespace Name Mixin selector official bLik;b()Leta;intermediary method_58240Lnet/minecraft/class_9380;method_58240()Lnet/minecraft/class_238;named asBoxLnet/minecraft/util/math/BlockArea;asBox()Lnet/minecraft/util/math/Box;
-
iterator
-
getSizeX
public int getSizeX()- Mappings:
Namespace Name Mixin selector official cLik;c()Iintermediary method_58243Lnet/minecraft/class_9380;method_58243()Inamed getSizeXLnet/minecraft/util/math/BlockArea;getSizeX()I
-
getSizeY
public int getSizeY()- Mappings:
Namespace Name Mixin selector official dLik;d()Iintermediary method_58245Lnet/minecraft/class_9380;method_58245()Inamed getSizeYLnet/minecraft/util/math/BlockArea;getSizeY()I
-
getSizeZ
public int getSizeZ()- Mappings:
Namespace Name Mixin selector official eLik;e()Iintermediary method_58246Lnet/minecraft/class_9380;method_58246()Inamed getSizeZLnet/minecraft/util/math/BlockArea;getSizeZ()I
-
extend
- Mappings:
Namespace Name Mixin selector official aLik;a(Lir;I)Lik;intermediary method_58238Lnet/minecraft/class_9380;method_58238(Lnet/minecraft/class_2350;I)Lnet/minecraft/class_9380;named extendLnet/minecraft/util/math/BlockArea;extend(Lnet/minecraft/util/math/Direction;I)Lnet/minecraft/util/math/BlockArea;
-
offset
- Mappings:
Namespace Name Mixin selector official bLik;b(Lir;I)Lik;intermediary method_58242Lnet/minecraft/class_9380;method_58242(Lnet/minecraft/class_2350;I)Lnet/minecraft/class_9380;named offsetLnet/minecraft/util/math/BlockArea;offset(Lnet/minecraft/util/math/Direction;I)Lnet/minecraft/util/math/BlockArea;
-
offset
- Mappings:
Namespace Name Mixin selector official aLik;a(Ljq;)Lik;intermediary method_58239Lnet/minecraft/class_9380;method_58239(Lnet/minecraft/class_2382;)Lnet/minecraft/class_9380;named offsetLnet/minecraft/util/math/BlockArea;offset(Lnet/minecraft/util/math/Vec3i;)Lnet/minecraft/util/math/BlockArea;
-
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
-