Class DisplayTrait

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

public class DisplayTrait extends Trait
  • Constructor Details

    • DisplayTrait

      public DisplayTrait()
  • Method Details

    • 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
    • setBillboard

      public void setBillboard(Display.Billboard billboard)
    • setBrightness

      public void setBrightness(Display.Brightness brightness)
    • setHeight

      public void setHeight(Float height)
    • setInterpolationDelay

      public void setInterpolationDelay(Integer interpolationDelay)
    • setInterpolationDuration

      public void setInterpolationDuration(Integer interpolationDuration)
    • setScale

      public void setScale(Vector scale)
    • setShadowRadius

      public void setShadowRadius(Float shadowRadius)
    • setShadowStrength

      public void setShadowStrength(Float shadowStrength)
    • setViewRange

      public void setViewRange(Float viewRange)
    • setWidth

      public void setWidth(Float width)
    • display

      public static void display(CommandContext args, CommandSender sender, NPC npc, Display.Billboard billboard, org.joml.Quaternionf leftrotation, org.joml.Quaternionf rightrotation, Vector scale, Float viewRange, String brightness, Integer interpolationDelay, Integer interpolationDuration, Float height, Float shadowRadius, Float shadowStrength, Float width) throws CommandException
      Throws:
      CommandException