Class SneakTrait

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

public class SneakTrait extends Trait
  • Constructor Details

    • SneakTrait

      public SneakTrait()
  • Method Details

    • isSneaking

      public boolean isSneaking()
    • onAttach

      public void onAttach()
      Description copied from class: Trait
      Called when the trait has been attached to an NPC. Trait.npc will be null until this is called.
      Overrides:
      onAttach in class Trait
    • onSpawn

      public void onSpawn()
      Description copied from class: Trait
      Called when an NPC is spawned. NPC.getEntity() will return null until this is called. This is also called onAttach when the NPC is already spawned.
      Overrides:
      onSpawn in class Trait
    • setSneaking

      public void setSneaking(boolean sneak)