Package net.minecraftforge.event.network
Class ChannelRegistrationChangeEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.network.ChannelRegistrationChangeEvent
public class ChannelRegistrationChangeEvent
extends net.minecraftforge.eventbus.api.Event
Fired when the channel registration (see minecraft custom channel documentation) changes.
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.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ChannelRegistrationChangeEvent.Type
private final Set
<ResourceLocation> private final Connection
-
Constructor Summary
ConstructorDescriptionChannelRegistrationChangeEvent
(Connection source, ChannelRegistrationChangeEvent.Type changeType, Set<ResourceLocation> channels) -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
source
-
changeType
-
channels
-
-
Constructor Details
-
ChannelRegistrationChangeEvent
public ChannelRegistrationChangeEvent(Connection source, ChannelRegistrationChangeEvent.Type changeType, Set<ResourceLocation> channels)
-
-
Method Details
-
getType
-
getSource
-
getChannels
-