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.
-
-
Field Summary
Fields Modifier and Type Field Description private GameType
currentGameMode
private NetworkPlayerInfo
info
private GameType
newGameMode
-
Constructor Summary
Constructors Constructor Description ClientPlayerChangeGameModeEvent(NetworkPlayerInfo info, GameType currentGameMode, GameType newGameMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GameType
getCurrentGameMode()
NetworkPlayerInfo
getInfo()
GameType
getNewGameMode()
-
-
-
Field Detail
-
info
private final NetworkPlayerInfo info
-
currentGameMode
private final GameType currentGameMode
-
newGameMode
private final GameType newGameMode
-
-
Constructor Detail
-
ClientPlayerChangeGameModeEvent
public ClientPlayerChangeGameModeEvent(NetworkPlayerInfo info, GameType currentGameMode, GameType newGameMode)
-
-
Method Detail
-
getInfo
public NetworkPlayerInfo getInfo()
-
getCurrentGameMode
public GameType getCurrentGameMode()
-
getNewGameMode
public GameType getNewGameMode()
-
-