Package net.minecraftforge.network
Class NetworkEvent.ChannelRegistrationChangeEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.network.NetworkEvent
net.minecraftforge.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.network.NetworkEvent
NetworkEvent.ChannelRegistrationChangeEvent, NetworkEvent.ClientCustomPayloadEvent, NetworkEvent.ClientCustomPayloadLoginEvent, NetworkEvent.Context, NetworkEvent.GatherLoginPayloadsEvent, NetworkEvent.LoginPayloadEvent, NetworkEvent.PacketDispatcher, 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.network.NetworkEvent
getLoginIndex, getPayload, getSource
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
changeType
-
-
Constructor Details
-
ChannelRegistrationChangeEvent
ChannelRegistrationChangeEvent(Supplier<NetworkEvent.Context> source, NetworkEvent.RegistrationChangeType changeType)
-
-
Method Details
-
getRegistrationChangeType
-