Package net.minecraft.core
Record Class BlockBox
java.lang.Object
java.lang.Record
net.minecraft.core.BlockBox
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockPosThe field for themaxrecord component.private final BlockPosThe field for theminrecord component.static final StreamCodec<io.netty.buffer.ByteBuf, BlockBox> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaabb()booleanfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisBlock()iterator()max()Returns the value of themaxrecord component.min()Returns the value of theminrecord component.static BlockBoxstatic BlockBoxintsizeX()intsizeY()intsizeZ()final 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. -
STREAM_CODEC
-
-
Constructor Details
-
BlockBox
Creates an instance of aBlockBoxrecord class.- Parameters:
min- the value for theminrecord componentmax- the value for themaxrecord component
-
-
Method Details
-
of
-
of
-
include
-
isBlock
public boolean isBlock() -
contains
-
aabb
-
iterator
-
sizeX
public int sizeX() -
sizeY
public int sizeY() -
sizeZ
public int sizeZ() -
extend
-
move
-
offset
-
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
-