Package net.citizensnpcs.trait.versioned
Class VillagerTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.versioned.VillagerTrait
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getLevel()
getType()
void
run()
Called every tick if overridden.void
setLevel
(int level) void
setType
(Villager.Type type) static void
villager
(CommandContext args, CommandSender sender, NPC npc, Villager.Profession profession, Villager.Type type, Integer level)
-
Constructor Details
-
VillagerTrait
public VillagerTrait()
-
-
Method Details
-
getLevel
public int getLevel() -
getType
-
run
public void run()Description copied from class:Trait
Called every tick if overridden. -
setLevel
public void setLevel(int level) -
setType
-
villager
public static void villager(CommandContext args, CommandSender sender, NPC npc, Villager.Profession profession, Villager.Type type, Integer level) throws CommandException - Throws:
CommandException
-