Class BossBarTrait

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

public class BossBarTrait extends Trait
  • Constructor Details

    • BossBarTrait

      public BossBarTrait()
  • Method Details

    • getColor

      public BarColor getColor()
    • getFlags

      public List<BarFlag> getFlags()
    • getStyle

      public BarStyle getStyle()
    • getTitle

      public String getTitle()
    • getTrackingVariable

      public String getTrackingVariable()
    • isVisible

      public boolean isVisible()
    • 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
    • setColor

      public void setColor(BarColor color)
    • setFlags

      public void setFlags(Collection<BarFlag> flags)
    • setFlags

      public void setFlags(List<BarFlag> flags)
    • setStyle

      public void setStyle(BarStyle style)
    • setTitle

      public void setTitle(String title)
    • setTrackVariable

      public void setTrackVariable(String variable)
    • setVisible

      public void setVisible(boolean visible)