Package net.minecraftforge.network
Class ChannelListManager
java.lang.Object
net.minecraftforge.network.ChannelListManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Logger(package private) static final EventNetworkChannel(package private) static final EventNetworkChannel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddChannels(Connection connection) static voidaddChannels(Connection connection, Collection<ResourceLocation> channels) static voidaddChannels(Connection connection, ResourceLocation... channels) private static voidstatic voidremoveChannels(Connection connection, Collection<ResourceLocation> channels) static voidremoveChannels(Connection connection, ResourceLocation... channels) private static voidsendChannels(EventNetworkChannel channel, Connection connection, Collection<ResourceLocation> channels) private static voidprivate static voidupdateFrom(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)
-