Package net.citizensnpcs.trait.versioned
Class DisplayTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.versioned.DisplayTrait
-
Field Summary
-
Constructor Summary
-
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 shadowRadius, Float shadowStrength, 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
setShadowRadius
(Float shadowRadius) void
setShadowStrength
(Float shadowStrength) 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
-
setShadowRadius
-
setShadowStrength
-
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 shadowRadius, Float shadowStrength, Float width) throws CommandException - Throws:
CommandException
-