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 interface Iterable
forEach, spliterator
-
Field Details
-
min
The field for theminrecord component. -
max
The field for themaxrecord component. -
STREAM_CODEC
-
-
Constructor Details
-
BlockBox
-
-
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
-
hashCode
-
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
-