Package net.citizensnpcs.trait.versioned
Class VillagerTrait
java.lang.Object
net.citizensnpcs.api.trait.Trait
net.citizensnpcs.trait.versioned.VillagerTrait
- 
Field Summary
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintgetLevel()getType()voidrun()Called every tick if overridden.voidsetLevel(int level) voidsetType(Villager.Type type) static voidvillager(CommandContext args, CommandSender sender, NPC npc, Villager.Profession profession, Villager.Type type, Integer level) 
- 
Constructor Details- 
VillagerTraitpublic VillagerTrait()
 
- 
- 
Method Details- 
getLevelpublic int getLevel()
- 
getType
- 
runpublic void run()Description copied from class:TraitCalled every tick if overridden.
- 
setLevelpublic void setLevel(int level) 
- 
setType
- 
villagerpublic static void villager(CommandContext args, CommandSender sender, NPC npc, Villager.Profession profession, Villager.Type type, Integer level) throws CommandException - Throws:
- CommandException
 
 
-