Package net.citizensnpcs.trait.versioned
Class MushroomCowTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.versioned.MushroomCowTrait
- 
Field Summary
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidmushroomcow(CommandContext args, CommandSender sender, NPC npc, MushroomCow.Variant variant) voidonSpawn()Called when anNPCis spawned.voidrun()Called every tick if overridden.voidsetVariant(MushroomCow.Variant variant) 
- 
Constructor Details- 
MushroomCowTraitpublic MushroomCowTrait()
 
- 
- 
Method Details- 
getVariant
- 
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.
- 
runpublic void run()Description copied from class:TraitCalled every tick if overridden.
- 
setVariant
- 
mushroomcowpublic static void mushroomcow(CommandContext args, CommandSender sender, NPC npc, MushroomCow.Variant variant) throws CommandException - Throws:
- CommandException
 
 
-