Package net.minecraftforge.client.event
Class ClientPlayerChangeGameModeEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ClientPlayerChangeGameModeEvent
public class ClientPlayerChangeGameModeEvent
extends net.minecraftforge.eventbus.api.Event
Fired before the client player is notified of a change in game mode from the server.
-
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 GameType
private final NetworkPlayerInfo
private final GameType
-
Constructor Summary
ConstructorDescriptionClientPlayerChangeGameModeEvent
(NetworkPlayerInfo info, GameType currentGameMode, GameType newGameMode) -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
info
-
currentGameMode
-
newGameMode
-
-
Constructor Details
-
ClientPlayerChangeGameModeEvent
public ClientPlayerChangeGameModeEvent(NetworkPlayerInfo info, GameType currentGameMode, GameType newGameMode)
-
-
Method Details
-
getInfo
-
getCurrentGameMode
-
getNewGameMode
-