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
public static class NetworkEvent.ChannelRegistrationChangeEvent extends 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
-
-
Field Summary
Fields Modifier and Type Field Description private NetworkEvent.RegistrationChangeType
changeType
-
Constructor Summary
Constructors Constructor Description ChannelRegistrationChangeEvent(java.util.function.Supplier<NetworkEvent.Context> source, NetworkEvent.RegistrationChangeType changeType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkEvent.RegistrationChangeType
getRegistrationChangeType()
-
Methods inherited from class net.minecraftforge.fml.network.NetworkEvent
getLoginIndex, getPayload, getSource
-
-
-
-
Field Detail
-
changeType
private final NetworkEvent.RegistrationChangeType changeType
-
-
Constructor Detail
-
ChannelRegistrationChangeEvent
ChannelRegistrationChangeEvent(java.util.function.Supplier<NetworkEvent.Context> source, NetworkEvent.RegistrationChangeType changeType)
-
-
Method Detail
-
getRegistrationChangeType
public NetworkEvent.RegistrationChangeType getRegistrationChangeType()
-
-