Class TargetableTrait

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

public class TargetableTrait extends Trait
  • Constructor Details

    • TargetableTrait

      public TargetableTrait()
  • Method Details

    • addTargeter

      public void addTargeter(UUID uuid)
    • clearTargeters

      public void clearTargeters()
    • isTargetable

      public boolean isTargetable()
    • 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
    • removeTargeter

      public void removeTargeter(UUID uuid)
    • setTargetable

      public void setTargetable(boolean targetable)