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 Details

    • info

      private final PlayerInfo info
    • currentGameMode

      private final GameType currentGameMode
    • newGameMode

      private final GameType newGameMode
  • Constructor Details

    • ClientPlayerChangeGameModeEvent

      public ClientPlayerChangeGameModeEvent(PlayerInfo info, GameType currentGameMode, GameType newGameMode)
  • Method Details

    • getInfo

      public PlayerInfo getInfo()
    • getCurrentGameMode

      public GameType getCurrentGameMode()
    • getNewGameMode

      public GameType getNewGameMode()