Record Class DebugStructureInfo.Piece
java.lang.Object
java.lang.Record
net.minecraft.util.debug.DebugStructureInfo.Piece
- Enclosing class:
DebugStructureInfo
public static record DebugStructureInfo.Piece(BoundingBox boundingBox, boolean isStart)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BoundingBoxThe field for theboundingBoxrecord component.private final booleanThe field for theisStartrecord component.static final StreamCodec<io.netty.buffer.ByteBuf, DebugStructureInfo.Piece> -
Constructor Summary
ConstructorsConstructorDescriptionPiece(BoundingBox boundingBox, boolean isStart) Creates an instance of aPiecerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theboundingBoxrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisStart()Returns the value of theisStartrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
boundingBox
The field for theboundingBoxrecord component. -
isStart
private final boolean isStartThe field for theisStartrecord component. -
STREAM_CODEC
-
-
Constructor Details
-
Piece
Creates an instance of aPiecerecord class.- Parameters:
boundingBox- the value for theboundingBoxrecord componentisStart- the value for theisStartrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
boundingBox
Returns the value of theboundingBoxrecord component.- Returns:
- the value of the
boundingBoxrecord component
-
isStart
public boolean isStart()Returns the value of theisStartrecord component.- Returns:
- the value of the
isStartrecord component
-