Package net.citizensnpcs.trait.versioned
Class DisplayTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.versioned.DisplayTrait
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 width) void
onSpawn()
Called when anNPC
is spawned.void
setBillboard
(Display.Billboard billboard) void
setBrightness
(Display.Brightness brightness) void
void
setInterpolationDelay
(Integer interpolationDelay) void
setInterpolationDuration
(Integer interpolationDuration) void
void
setViewRange
(Float viewRange) void
-
Constructor Details
-
DisplayTrait
public DisplayTrait()
-
-
Method Details
-
onSpawn
public void onSpawn()Description copied from class:Trait
Called when anNPC
is spawned.NPC.getEntity()
will return null until this is called. This is also called onAttach when the NPC is already spawned. -
setBillboard
-
setBrightness
-
setHeight
-
setInterpolationDelay
-
setInterpolationDuration
-
setScale
-
setViewRange
-
setWidth
-
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 width) throws CommandException - Throws:
CommandException
-