Class WolfModifiers

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

public class WolfModifiers extends Trait
Persists Wolf metadata.
See Also:
  • Constructor Details

    • WolfModifiers

      public WolfModifiers()
  • Method Details

    • getCollarColor

      public DyeColor getCollarColor()
    • getVariant

      public String getVariant()
    • isAngry

      public boolean isAngry()
    • isInterested

      public boolean isInterested()
    • isSitting

      public boolean isSitting()
    • isTamed

      public boolean isTamed()
    • 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
    • setAngry

      public void setAngry(boolean angry)
    • setCollarColor

      public void setCollarColor(DyeColor color)
    • setInterested

      public void setInterested(boolean interested)
    • setSitting

      public void setSitting(boolean sitting)
    • setTamed

      public void setTamed(boolean tamed)
    • setVariant

      public void setVariant(String variant)