Package net.citizensnpcs.trait.versioned
Class AreaEffectCloudTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.versioned.AreaEffectCloudTrait
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidareaeffectcloud(CommandContext args, CommandSender sender, NPC npc, Integer duration, Float radius, Color color, PotionType type, Particle particle) voidonSpawn()Called when anNPCis spawned.voidvoidsetDuration(Integer duration) voidsetParticle(Particle particle) voidsetPotionType(PotionType type) void
-
Constructor Details
-
AreaEffectCloudTrait
public AreaEffectCloudTrait()
-
-
Method Details
-
onSpawn
public void onSpawn()Description copied from class:TraitCalled when anNPCis 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
-