Record Class FrozenRegistrySyncStartPayload
java.lang.Object
java.lang.Record
net.neoforged.neoforge.network.payload.FrozenRegistrySyncStartPayload
- Record Components:
toAccess- The registries to access.
- All Implemented Interfaces:
CustomPacketPayload
@Internal
public record FrozenRegistrySyncStartPayload(List<Identifier> toAccess)
extends Record
implements CustomPacketPayload
Packet payload sent to the client to start the frozen registry sync.
It indicates to the client which registries it should expect to receive.
-
Nested Class Summary
Nested classes/interfaces inherited from interface CustomPacketPayload
CustomPacketPayload.FallbackProvider<B>, CustomPacketPayload.Type<T>, CustomPacketPayload.TypeAndCodec<B,T> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StreamCodec<FriendlyByteBuf, FrozenRegistrySyncStartPayload> private final List<Identifier> The field for thetoAccessrecord component.static final CustomPacketPayload.Type<FrozenRegistrySyncStartPayload> -
Constructor Summary
ConstructorsConstructorDescriptionFrozenRegistrySyncStartPayload(List<Identifier> toAccess) Creates an instance of aFrozenRegistrySyncStartPayloadrecord 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.toAccess()Returns the value of thetoAccessrecord component.final StringtoString()Returns a string representation of this record class.type()Methods inherited from interface CustomPacketPayload
toVanillaClientbound, toVanillaServerbound
-
Field Details
-
toAccess
The field for thetoAccessrecord component. -
TYPE
-
STREAM_CODEC
-
-
Constructor Details
-
FrozenRegistrySyncStartPayload
Creates an instance of aFrozenRegistrySyncStartPayloadrecord class.- Parameters:
toAccess- the value for thetoAccessrecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceCustomPacketPayload
-
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). -
toAccess
-