Class C2SPlayChannelEvents
java.lang.Object
net.fabricmc.fabric.api.client.networking.v1.C2SPlayChannelEvents
@Environment(CLIENT) public final class C2SPlayChannelEvents extends Object
Offers access to events related to the indication of a connected server's ability to receive packets in certain channels.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceC2SPlayChannelEvents.Registerstatic interfaceC2SPlayChannelEvents.Unregister -
Field Summary
Fields Modifier and Type Field Description static Event<C2SPlayChannelEvents.Register>REGISTERAn event for the client play network handler receiving an update indicating the connected server's ability to receive packets in certain channels.static Event<C2SPlayChannelEvents.Unregister>UNREGISTERAn event for the client play network handler receiving an update indicating the connected server's lack of ability to receive packets in certain channels. -
Method Summary
-
Field Details
-
REGISTER
An event for the client play network handler receiving an update indicating the connected server's ability to receive packets in certain channels. This event may be invoked at any time after login and up to disconnection. -
UNREGISTER
An event for the client play network handler receiving an update indicating the connected server's lack of ability to receive packets in certain channels. This event may be invoked at any time after login and up to disconnection.
-