类 NetworkEvent.ChannelRegistrationChangeEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.network.NetworkEvent
net.minecraftforge.network.NetworkEvent.ChannelRegistrationChangeEvent
- 封闭类:
- 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.
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraftforge.network.NetworkEvent
NetworkEvent.ChannelRegistrationChangeEvent, NetworkEvent.ClientCustomPayloadEvent, NetworkEvent.ClientCustomPayloadLoginEvent, NetworkEvent.Context, NetworkEvent.GatherLoginPayloadsEvent, NetworkEvent.LoginPayloadEvent, NetworkEvent.PacketDispatcher, NetworkEvent.RegistrationChangeType, NetworkEvent.ServerCustomPayloadEvent, NetworkEvent.ServerCustomPayloadLoginEvent
从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
字段概要
字段 -
构造器概要
构造器构造器说明ChannelRegistrationChangeEvent
(Supplier<NetworkEvent.Context> source, NetworkEvent.RegistrationChangeType changeType) -
方法概要
从类继承的方法 net.minecraftforge.network.NetworkEvent
getLoginIndex, getPayload, getSource
从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
字段详细资料
-
changeType
-
-
构造器详细资料
-
ChannelRegistrationChangeEvent
ChannelRegistrationChangeEvent(Supplier<NetworkEvent.Context> source, NetworkEvent.RegistrationChangeType changeType)
-
-
方法详细资料
-
getRegistrationChangeType
-