Class GameModeTrait

java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.GameModeTrait
All Implemented Interfaces:
Runnable, Listener

public class GameModeTrait extends Trait
Persists the GameMode of a Player NPC.
See Also:
  • Constructor Details

    • GameModeTrait

      public GameModeTrait()
  • Method Details

    • getGameMode

      public GameMode getGameMode()
    • run

      public void run()
      Description copied from class: Trait
      Called every tick if overridden.
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Trait
    • setGameMode

      public void setGameMode(GameMode mode)