Record Class StructuresDebugPayload
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.common.custom.StructuresDebugPayload
- All Implemented Interfaces:
- CustomPacketPayload
public record StructuresDebugPayload(ResourceKey<Level> dimension, BoundingBox mainBB, List<StructuresDebugPayload.PieceInfo> pieces)
extends Record
implements CustomPacketPayload
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final ResourceKey<Level>The field for thedimensionrecord component.static final ResourceLocationprivate final BoundingBoxThe field for themainBBrecord component.private final List<StructuresDebugPayload.PieceInfo>The field for thepiecesrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionStructuresDebugPayload(FriendlyByteBuf p_294983_) StructuresDebugPayload(ResourceKey<Level> dimension, BoundingBox mainBB, List<StructuresDebugPayload.PieceInfo> pieces) Creates an instance of aStructuresDebugPayloadrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of thedimensionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()mainBB()Returns the value of themainBBrecord component.pieces()Returns the value of thepiecesrecord component.(package private) static BoundingBoxreadBoundingBox(FriendlyByteBuf p_294387_) final StringtoString()Returns a string representation of this record class.voidwrite(FriendlyByteBuf p_295318_) (package private) static voidwriteBoundingBox(FriendlyByteBuf p_296195_, BoundingBox p_294095_) 
- 
Field Details- 
dimensionThe field for thedimensionrecord component.
- 
mainBBThe field for themainBBrecord component.
- 
piecesThe field for thepiecesrecord component.
- 
ID
 
- 
- 
Constructor Details- 
StructuresDebugPayload
- 
StructuresDebugPayloadpublic StructuresDebugPayload(ResourceKey<Level> dimension, BoundingBox mainBB, List<StructuresDebugPayload.PieceInfo> pieces) Creates an instance of aStructuresDebugPayloadrecord class.- Parameters:
- dimension- the value for the- dimensionrecord component
- mainBB- the value for the- mainBBrecord component
- pieces- the value for the- piecesrecord component
 
 
- 
- 
Method Details- 
write- Specified by:
- writein interface- CustomPacketPayload
 
- 
id- Specified by:
- idin interface- CustomPacketPayload
 
- 
readBoundingBox
- 
writeBoundingBox
- 
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. All components in this record class are compared withObjects::equals(Object,Object).
- 
dimensionReturns the value of thedimensionrecord component.- Returns:
- the value of the dimensionrecord component
 
- 
mainBBReturns the value of themainBBrecord component.- Returns:
- the value of the mainBBrecord component
 
- 
piecesReturns the value of thepiecesrecord component.- Returns:
- the value of the piecesrecord component
 
 
-