Class ArmorStandTrait

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

public class ArmorStandTrait extends Trait
  • Constructor Details

    • ArmorStandTrait

      public ArmorStandTrait()
  • Method Details

    • getGravity

      public boolean getGravity()
    • getHasArms

      public boolean getHasArms()
    • getHasBaseplate

      public boolean getHasBaseplate()
    • isMarker

      public boolean isMarker()
    • isSmall

      public boolean isSmall()
    • isVisible

      public boolean isVisible()
    • onPreSpawn

      public void onPreSpawn()
      Description copied from class: Trait
      Called just before the NPC is spawned. NPC.getEntity() will return an unspawned entity.
      Overrides:
      onPreSpawn in class Trait
    • 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
    • setAsHelperEntity

      public void setAsHelperEntity(NPC parent)
    • setAsHelperEntityWithName

      public void setAsHelperEntityWithName(NPC parent)
    • setAsPointEntity

      public void setAsPointEntity()
      Configures the entity as an invisible point entity, e.g. for mounting NPCs on top, nameplates, etc.
    • setAsPointEntityWithName

      public void setAsPointEntityWithName()
    • setGravity

      public void setGravity(boolean gravity)
      See Also:
    • setHasArms

      public void setHasArms(boolean arms)
      See Also:
    • setHasBaseplate

      public void setHasBaseplate(boolean baseplate)
      See Also:
    • setMarker

      public void setMarker(boolean marker)
      See Also:
    • setSmall

      public void setSmall(boolean small)
      See Also:
    • setVisible

      public void setVisible(boolean visible)
      See Also: