Record Class SyncAttachmentsPayload.BlockEntityTarget
java.lang.Object
java.lang.Record
net.neoforged.neoforge.network.payload.SyncAttachmentsPayload.BlockEntityTarget
- All Implemented Interfaces:
SyncAttachmentsPayload.Target
- Enclosing class:
SyncAttachmentsPayload
public static record SyncAttachmentsPayload.BlockEntityTarget(BlockPos pos)
extends Record
implements SyncAttachmentsPayload.Target
-
Field Summary
FieldsFields inherited from interface SyncAttachmentsPayload.Target
STREAM_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aBlockEntityTargetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.pos()Returns the value of theposrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
pos
The field for theposrecord component.
-
-
Constructor Details
-
BlockEntityTarget
Creates an instance of aBlockEntityTargetrecord class.- Parameters:
pos- the value for theposrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
pos
Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-