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
Modifier and TypeFieldDescriptionprivate final BoundingBox
The field for theboundingBox
record component.private final boolean
The field for theisStart
record component. -
Constructor Summary
ConstructorDescriptionPieceInfo
(FriendlyByteBuf p_297915_) PieceInfo
(BoundingBox boundingBox, boolean isStart) Creates an instance of aPieceInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theboundingBox
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
isStart()
Returns the value of theisStart
record component.final String
toString()
Returns a string representation of this record class.void
write
(FriendlyByteBuf p_298576_)
-
Field Details
-
boundingBox
The field for theboundingBox
record component. -
isStart
private final boolean isStartThe field for theisStart
record component.
-
-
Constructor Details
-
PieceInfo
-
PieceInfo
Creates an instance of aPieceInfo
record class.- Parameters:
boundingBox
- the value for theboundingBox
record componentisStart
- the value for theisStart
record 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 theboundingBox
record component.- Returns:
- the value of the
boundingBox
record component
-
isStart
public boolean isStart()Returns the value of theisStart
record component.- Returns:
- the value of the
isStart
record component
-