Package net.minecraftforge.network
Class ChannelListManager
java.lang.Object
net.minecraftforge.network.ChannelListManager
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static final record
private static final record
-
Field Summary
Modifier and TypeFieldDescription(package private) static final Channel
<CustomPacketPayload> private static final org.slf4j.Logger
static final ResourceLocation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addChannels
(Connection connection) static void
addChannels
(Connection connection, Collection<ResourceLocation> channels) static void
addChannels
(Connection connection, ResourceLocation... channels) decode
(FriendlyByteBuf buffer) private static void
encode
(FriendlyByteBuf buf, List<String> channels) private static void
register
(ChannelListManager.Register payload, CustomPayloadEvent.Context ctx) static void
removeChannels
(Connection connection, Collection<ResourceLocation> channels) static void
removeChannels
(Connection connection, ResourceLocation... channels) private static void
private static void
updateFrom
(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)
-