Class ShulkerTrait

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

public class ShulkerTrait extends Trait
  • Constructor Details

    • ShulkerTrait

      public ShulkerTrait()
  • Method Details

    • getColor

      public DyeColor getColor()
    • getPeek

      public int getPeek()
    • 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
    • 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(DyeColor color)
    • setPeek

      public void setPeek(int peek)