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 Summary
FieldsModifier and TypeFieldDescriptionprivate final BoundingBoxThe field for theboundingBoxrecord component.private final booleanThe field for theisStartrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPieceInfo(FriendlyByteBuf p_294562_) PieceInfo(BoundingBox boundingBox, boolean isStart) Creates an instance of aPieceInforecord 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.voidwrite(FriendlyByteBuf p_295794_)
-
Field Details
-
boundingBox
The field for theboundingBoxrecord component. -
isStart
private final boolean isStartThe field for theisStartrecord component.
-
-
Constructor Details
-
PieceInfo
-
PieceInfo
Creates an instance of aPieceInforecord class.- Parameters:
boundingBox- the value for theboundingBoxrecord componentisStart- the value for theisStartrecord component
-
-
Method Details
-
write
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
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
-