Record Class ConfigurationRegistration<T extends CustomPacketPayload>

java.lang.Object
java.lang.Record
net.neoforged.neoforge.network.registration.ConfigurationRegistration<T>
Type Parameters:
T - The type of the payload
Record Components:
reader - The reader for the payload
handler - The handler for the payload
version - The version of the payload
flow - The flow of the payload
optional - Whether the payload is optional
All Implemented Interfaces:
Function<FriendlyByteBuf,CustomPacketPayload>, FriendlyByteBuf.Reader<CustomPacketPayload>, IConfigurationPayloadHandler<CustomPacketPayload>

@Internal public record ConfigurationRegistration<T extends CustomPacketPayload>(FriendlyByteBuf.Reader<T extends CustomPacketPayload> reader, IConfigurationPayloadHandler<T extends CustomPacketPayload> handler, Optional<String> version, Optional<PacketFlow> flow, boolean optional) extends Record implements IConfigurationPayloadHandler<CustomPacketPayload>, FriendlyByteBuf.Reader<CustomPacketPayload>
A record that holds the information needed to describe a registered configuration payload, its reader and handler.