Record Class ConfigurationPayloadContext

java.lang.Object
java.lang.Record
net.neoforged.neoforge.network.handling.ConfigurationPayloadContext
Record Components:
replyHandler - A reply handler that can be used to send a reply to the player.
packetHandler - The packet handler that can be used to immediately process other packets.
taskCompletedHandler - The task completed handler that can be used to indicate that a configuration task has been completed.
workHandler - A work handler that can be used to schedule work to be done on the main thread.
flow - The flow of the packet.
channelHandlerContext - The channel handler context.
player - The player of the payload.
All Implemented Interfaces:
IPayloadContext

public record ConfigurationPayloadContext(IReplyHandler replyHandler, IPacketHandler packetHandler, ITaskCompletedHandler taskCompletedHandler, ISynchronizedWorkHandler workHandler, PacketFlow flow, io.netty.channel.ChannelHandlerContext channelHandlerContext, Optional<Player> player) extends Record implements IPayloadContext
The context that is passed to a handler for a payload that arrives during the configuration phase of the connection.
Implementation Note:
The player() will be filled with the current client side player if the payload was sent by the server, the server will only populate this field if it is not configuring the client.