Class SleepTrait

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

public class SleepTrait extends Trait
  • Constructor Details

    • SleepTrait

      public SleepTrait()
  • Method Details

    • onDespawn

      public void onDespawn()
      Description copied from class: Trait
      Called just before the attached NPC is despawned. NPC.getEntity() will be non-null.
      Overrides:
      onDespawn in class Trait
    • 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
    • setSleeping

      public void setSleeping(Location at)