记录类 CommonRegisterPayload

java.lang.Object
java.lang.Record
net.neoforged.neoforge.network.payload.CommonRegisterPayload
记录组件:
version - Declared version of all contained channels. Currently unused by NeoForge.
protocol - The ConnectionProtocol of the contained channels. One of "play" or "configuration". Currently NeoForge only expects and sends "play" channels via this payload.
channels - A list of all named channels available for the declared phase.
所有已实现的接口:
CustomPacketPayload

@Internal public record CommonRegisterPayload(int version, ConnectionProtocol protocol, Set<ResourceLocation> channels) extends Record implements CustomPacketPayload
Common Register, used to send play-phase channels during the configuration phase.