Package net.minecraftforge.fml.network
Class NetworkEvent.ChannelRegistrationChangeEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.fml.network.NetworkEvent
net.minecraftforge.fml.network.NetworkEvent.ChannelRegistrationChangeEvent
- Enclosing class:
- NetworkEvent
Fired when the channel registration (see minecraft custom channel documentation) changes. Note the payload
is not exposed. This fires to the resource location that owns the channel, when it's registration changes state.
It seems plausible that this will fire multiple times for the same state, depending on what the server is doing.
It just directly dispatches upon receipt.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.fml.network.NetworkEvent
NetworkEvent.ChannelRegistrationChangeEvent, NetworkEvent.ClientCustomPayloadEvent, NetworkEvent.ClientCustomPayloadLoginEvent, NetworkEvent.Context, NetworkEvent.GatherLoginPayloadsEvent, NetworkEvent.LoginPayloadEvent, NetworkEvent.RegistrationChangeType, NetworkEvent.ServerCustomPayloadEvent, NetworkEvent.ServerCustomPayloadLoginEvent
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
ConstructorDescriptionChannelRegistrationChangeEvent
(Supplier<NetworkEvent.Context> source, NetworkEvent.RegistrationChangeType changeType) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class net.minecraftforge.fml.network.NetworkEvent
getLoginIndex, getPayload, getSource
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
changeType
-
-
Constructor Details
-
ChannelRegistrationChangeEvent
ChannelRegistrationChangeEvent(Supplier<NetworkEvent.Context> source, NetworkEvent.RegistrationChangeType changeType)
-
-
Method Details
-
getRegistrationChangeType
-