Package net.citizensnpcs.trait.versioned
Class SpellcasterTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.versioned.SpellcasterTrait
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetSpell()
void
run()
Called every tick if overridden.void
setSpell
(Spellcaster.Spell spell) static void
Spellcaster
(CommandContext args, CommandSender sender, NPC npc, Spellcaster.Spell spell)
-
Constructor Details
-
SpellcasterTrait
public SpellcasterTrait()
-
-
Method Details
-
getSpell
-
run
public void run()Description copied from class:Trait
Called every tick if overridden. -
setSpell
-
Spellcaster
public static void Spellcaster(CommandContext args, CommandSender sender, NPC npc, Spellcaster.Spell spell) throws CommandException - Throws:
CommandException
-