Class ItemFrameTrait

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

public class ItemFrameTrait extends Trait
Persists ItemFrame metadata.
  • Constructor Details

    • ItemFrameTrait

      public ItemFrameTrait()
  • Method Details

    • getFixed

      public Boolean getFixed()
    • getItem

      public ItemStack getItem()
    • getRotation

      public Rotation getRotation()
    • isVisible

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

      public void setFixed(boolean fixed)
    • setItem

      public void setItem(ItemStack item)
    • setRotation

      public void setRotation(Rotation rot)
    • setVisible

      public void setVisible(boolean visible)