Class WitherTrait

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

public class WitherTrait extends Trait
Persists Wither metadata.
See Also:
  • Constructor Details

    • WitherTrait

      public WitherTrait()
  • Method Details

    • blocksArrows

      public Boolean blocksArrows()
    • getInvulnerableTicks

      public Integer getInvulnerableTicks()
    • isInvulnerable

      public boolean isInvulnerable()
    • 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
    • setBlocksArrows

      public void setBlocksArrows(boolean arrowShield)
    • setInvulnerable

      public void setInvulnerable(boolean invulnerable)
    • setInvulnerableTicks

      public void setInvulnerableTicks(int ticks)