Record Class StructuresDebugPayload.PieceInfo
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.common.custom.StructuresDebugPayload.PieceInfo
- Enclosing class:
- StructuresDebugPayload
public static record StructuresDebugPayload.PieceInfo(BoundingBox boundingBox, boolean isStart)
extends Record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final BoundingBoxThe field for theboundingBoxrecord component.private final booleanThe field for theisStartrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionPieceInfo(FriendlyByteBuf p_294562_) PieceInfo(BoundingBox boundingBox, boolean isStart) Creates an instance of aPieceInforecord class.
- 
Method SummaryModifier 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.voidwrite(FriendlyByteBuf p_295794_) 
- 
Field Details- 
boundingBoxThe field for theboundingBoxrecord component.
- 
isStartprivate final boolean isStartThe field for theisStartrecord component.
 
- 
- 
Constructor Details- 
PieceInfo
- 
PieceInfoCreates an instance of aPieceInforecord class.- Parameters:
- boundingBox- the value for the- boundingBoxrecord component
- isStart- the value for the- isStartrecord component
 
 
- 
- 
Method Details- 
write
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
boundingBoxReturns the value of theboundingBoxrecord component.- Returns:
- the value of the boundingBoxrecord component
 
- 
isStartpublic boolean isStart()Returns the value of theisStartrecord component.- Returns:
- the value of the isStartrecord component
 
 
-