类 ClientPlayerNetworkEvent.LoggingOut
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ClientPlayerNetworkEvent
net.minecraftforge.client.event.ClientPlayerNetworkEvent.LoggingOut
Fired when the client player logs out. This event may also fire when a new integrated server is being created.
This event is not cancellable, and does not have a result.
This event is fired on the main Forge event bus, only on the logical client.
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraftforge.client.event.ClientPlayerNetworkEvent
ClientPlayerNetworkEvent.Clone, ClientPlayerNetworkEvent.LoggingIn, ClientPlayerNetworkEvent.LoggingOut
从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
构造器概要
构造器构造器说明LoggingOut
(@Nullable MultiPlayerGameMode controller, @Nullable LocalPlayer player, @Nullable Connection networkManager) -
方法概要
修饰符和类型方法说明@Nullable Connection
返回 the network connection for the player, may benull
。@Nullable MultiPlayerGameMode
返回 the multiplayer game mode controller for the player, may benull
。@Nullable LocalPlayer
返回 the player instance, may benull
。从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
构造器详细资料
-
LoggingOut
@Internal public LoggingOut(@Nullable @Nullable MultiPlayerGameMode controller, @Nullable @Nullable LocalPlayer player, @Nullable @Nullable Connection networkManager)
-
-
方法详细资料
-
getMultiPlayerGameMode
返回 the multiplayer game mode controller for the player, may benull
。. This may benull
in certain situations such as the creating a new integrated server (singleplayer world) or connecting to a multiplayer server.- 覆盖:
getMultiPlayerGameMode
在类中ClientPlayerNetworkEvent
- 返回:
- the multiplayer game mode controller for the player, may be
null
-
getPlayer
返回 the player instance, may benull
。. This may benull
in certain situations such as the creating a new integrated server (singleplayer world) or connecting to a multiplayer server.- 覆盖:
getPlayer
在类中ClientPlayerNetworkEvent
- 返回:
- the player instance, may be
null
-
getConnection
返回 the network connection for the player, may benull
。. This may benull
in certain situations such as the creating a new integrated server (singleplayer world) or connecting to a multiplayer server.- 覆盖:
getConnection
在类中ClientPlayerNetworkEvent
- 返回:
- the network connection for the player, may be
null
-