Package net.minecraft.core
Record Class BlockBox
java.lang.Object
java.lang.Record
net.minecraft.core.BlockBox
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BlockPos
The field for themax
record component.private final BlockPos
The field for themin
record component.static final StreamCodec
<io.netty.buffer.ByteBuf, BlockBox> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaabb()
boolean
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
isBlock()
iterator()
max()
Returns the value of themax
record component.min()
Returns the value of themin
record component.static BlockBox
static BlockBox
int
sizeX()
int
sizeY()
int
sizeZ()
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. -
STREAM_CODEC
-
-
Constructor Details
-
BlockBox
Creates an instance of aBlockBox
record class.- Parameters:
min
- the value for themin
record componentmax
- the value for themax
record 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 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
-