Class PlayerGameModeChangeEvent

java.lang.Object
cn.nukkit.event.Event
cn.nukkit.event.player.PlayerEvent
cn.nukkit.event.player.PlayerGameModeChangeEvent
All Implemented Interfaces:
Cancellable

public class PlayerGameModeChangeEvent extends PlayerEvent implements Cancellable
  • Field Details

    • gamemode

      protected final int gamemode
    • newAdventureSettings

      protected AdventureSettings newAdventureSettings
  • Constructor Details

    • PlayerGameModeChangeEvent

      public PlayerGameModeChangeEvent(Player player, int newGameMode, AdventureSettings newAdventureSettings)
  • Method Details

    • getHandlers

      public static HandlerList getHandlers()
    • getNewGamemode

      public int getNewGamemode()
    • getNewAdventureSettings

      public AdventureSettings getNewAdventureSettings()
    • setNewAdventureSettings

      public void setNewAdventureSettings(AdventureSettings newAdventureSettings)