Package net.citizensnpcs.trait.versioned
Class AreaEffectCloudTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.versioned.AreaEffectCloudTrait
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
areaeffectcloud
(CommandContext args, CommandSender sender, NPC npc, Integer duration, Float radius, Color color, PotionType type, Particle particle) void
onSpawn()
Called when anNPC
is spawned.void
void
setDuration
(Integer duration) void
setParticle
(Particle particle) void
setPotionType
(PotionType type) void
-
Constructor Details
-
AreaEffectCloudTrait
public AreaEffectCloudTrait()
-
-
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. -
setColor
-
setDuration
-
setParticle
-
setPotionType
-
setRadius
-
areaeffectcloud
public static void areaeffectcloud(CommandContext args, CommandSender sender, NPC npc, Integer duration, Float radius, Color color, PotionType type, Particle particle) throws CommandException - Throws:
CommandException
-