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