Package net.minecraftforge.network
Class ChannelListManager
java.lang.Object
net.minecraftforge.network.ChannelListManager
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprivate static final recordprivate static final record
- 
Field SummaryFieldsModifier and TypeFieldDescription(package private) static final Channel<CustomPacketPayload> private static final org.slf4j.Loggerstatic final ResourceLocation
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidaddChannels(Connection connection) static voidaddChannels(Connection connection, Collection<ResourceLocation> channels) static voidaddChannels(Connection connection, ResourceLocation... channels) decode(FriendlyByteBuf buffer) private static voidencode(FriendlyByteBuf buf, List<String> channels) private static voidregister(ChannelListManager.Register payload, CustomPayloadEvent.Context ctx) static voidremoveChannels(Connection connection, Collection<ResourceLocation> channels) static voidremoveChannels(Connection connection, ResourceLocation... channels) private static voidprivate static voidupdateFrom(CustomPayloadEvent.Context source, List<String> channels, ChannelRegistrationChangeEvent.Type changeType) 
- 
Field Details- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
NAME
- 
CHANNEL
 
- 
- 
Constructor Details- 
ChannelListManagerpublic ChannelListManager()
 
- 
- 
Method Details- 
register
- 
unregisterprivate static void unregister(ChannelListManager.Unregister payload, CustomPayloadEvent.Context ctx) 
- 
addChannels
- 
addChannels
- 
addChannels
- 
removeChannels
- 
removeChannels
- 
encode
- 
decode
- 
updateFromprivate static void updateFrom(CustomPayloadEvent.Context source, List<String> channels, ChannelRegistrationChangeEvent.Type changeType) 
 
-