Record Class DebugStructureInfo.Piece
java.lang.Object
java.lang.Record
net.minestom.server.network.debug.info.DebugStructureInfo.Piece
- Enclosing class:
DebugStructureInfo
public static record DebugStructureInfo.Piece(BlockBoundingBox boundingBox, boolean isStart)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPiece(BlockBoundingBox 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
-
SERIALIZER
-
-
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
-