Package net.minecraftforge.network
Class ChannelListManager
java.lang.Object
net.minecraftforge.network.ChannelListManager
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
(package private) static final EventNetworkChannel
(package private) static final EventNetworkChannel
-
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) private static void
static void
removeChannels
(Connection connection, Collection<ResourceLocation> channels) static void
removeChannels
(Connection connection, ResourceLocation... channels) private static void
sendChannels
(EventNetworkChannel channel, Connection connection, Collection<ResourceLocation> channels) private static void
private static void
updateFrom
(CustomPayloadEvent.Context source, FriendlyByteBuf buffer, ChannelRegistrationChangeEvent.Type changeType)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
REGISTER
-
UNREGISTER
-
-
Constructor Details
-
ChannelListManager
public ChannelListManager()
-
-
Method Details
-
registerListener
-
unregisterListener
-
addChannels
-
addChannels
-
addChannels
-
removeChannels
-
removeChannels
-
sendChannels
private static void sendChannels(EventNetworkChannel channel, Connection connection, Collection<ResourceLocation> channels) -
updateFrom
private static void updateFrom(CustomPayloadEvent.Context source, FriendlyByteBuf buffer, ChannelRegistrationChangeEvent.Type changeType)
-