Package net.citizensnpcs.trait.versioned
Class MushroomCowTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.versioned.MushroomCowTrait
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
MushroomCowTrait
public MushroomCowTrait()
-
-
Method Details
-
getVariant
-
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. -
run
public void run()Description copied from class:TraitCalled every tick if overridden. -
setVariant
-
mushroomcow
public static void mushroomcow(CommandContext args, CommandSender sender, NPC npc, MushroomCow.Variant variant) throws CommandException - Throws:
CommandException
-