Package net.minecraftforge.client.event
Class ClientPlayerNetworkEvent.LoggingOut
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ClientPlayerNetworkEvent
net.minecraftforge.client.event.ClientPlayerNetworkEvent.LoggingOut
- Enclosing class:
- ClientPlayerNetworkEvent
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.client.event.ClientPlayerNetworkEvent
ClientPlayerNetworkEvent.Clone, ClientPlayerNetworkEvent.LoggingIn, ClientPlayerNetworkEvent.LoggingOut
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Constructor Summary
ConstructorDescriptionLoggingOut
(@Nullable MultiPlayerGameMode controller, @Nullable LocalPlayer player, @Nullable Connection networkManager) -
Method Summary
Modifier and TypeMethodDescription@Nullable Connection
Returns the network connection for the player, may benull
.@Nullable MultiPlayerGameMode
Returns the multiplayer game mode controller for the player, may benull
.@Nullable LocalPlayer
Returns the player instance, may benull
.Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
LoggingOut
@Internal public LoggingOut(@Nullable @Nullable MultiPlayerGameMode controller, @Nullable @Nullable LocalPlayer player, @Nullable @Nullable Connection networkManager)
-
-
Method Details
-
getMultiPlayerGameMode
Returns 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.- Overrides:
getMultiPlayerGameMode
in classClientPlayerNetworkEvent
- Returns:
- the multiplayer game mode controller for the player, may be
null
-
getPlayer
Returns 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.- Overrides:
getPlayer
in classClientPlayerNetworkEvent
- Returns:
- the player instance, may be
null
-
getConnection
Returns 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.- Overrides:
getConnection
in classClientPlayerNetworkEvent
- Returns:
- the network connection for the player, may be
null
-