Class ScoreboardTrait

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

public class ScoreboardTrait extends Trait
  • Constructor Details

    • ScoreboardTrait

      public ScoreboardTrait()
  • Method Details

    • createTeam

      public void createTeam(String entityName)
    • getColor

      public ChatColor getColor()
    • onDespawn

      public void onDespawn(DespawnReason reason)
      Description copied from class: Trait
      Called just before the attached NPC is despawned. NPC.getEntity() will be non-null.
      Overrides:
      onDespawn in class Trait
    • onRemove

      public void onRemove()
      Description copied from class: Trait
      Called when a trait is removed from the attached NPC.
      Overrides:
      onRemove 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
    • setColor

      public void setColor(ChatColor color)
    • setTags

      public void setTags(Set<String> tags)
    • update

      public void update()