Klasse PlayerChangeStateEvent


public final class PlayerChangeStateEvent extends PlayerEvent
Called when a player changes this state. For example, this happens if a player starts swimming, goes to bed or sits on a chair.
  • Methodendetails

    • getOldState

      public Player.State getOldState()
      Gets the old player state.
      Gibt zurück:
      the old player state.
    • getNewState

      public Player.State getNewState()
      Gets the new player state.
      Gibt zurück:
      the new player state.