Package net.citizensnpcs.trait.versioned
Class AreaEffectCloudTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.versioned.AreaEffectCloudTrait
- 
Field Summary
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
AreaEffectCloudTraitpublic AreaEffectCloudTrait()
 
- 
- 
Method Details- 
onSpawnpublic 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
- 
areaeffectcloudpublic static void areaeffectcloud(CommandContext args, CommandSender sender, NPC npc, Integer duration, Float radius, Color color, PotionType type, Particle particle) throws CommandException - Throws:
- CommandException
 
 
-