Package net.minecraftforge.network
Class ChannelListManager
java.lang.Object
net.minecraftforge.network.ChannelListManager
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final recordprivate static final record -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final Channel<CustomPacketPayload> private static final org.slf4j.Loggerstatic final ResourceLocation -
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
LOGGER
private static final org.slf4j.Logger LOGGER -
NAME
-
CHANNEL
-
-
Constructor Details
-
ChannelListManager
public ChannelListManager()
-
-
Method Details
-
register
-
unregister
private static void unregister(ChannelListManager.Unregister payload, CustomPayloadEvent.Context ctx) -
addChannels
-
addChannels
-
addChannels
-
removeChannels
-
removeChannels
-
encode
-
decode
-
updateFrom
private static void updateFrom(CustomPayloadEvent.Context source, List<String> channels, ChannelRegistrationChangeEvent.Type changeType)
-