public interface Villager extends Ageable, NPC
| Modifier and Type | Interface and Description | 
|---|---|
static class  | 
Villager.Profession
Represents the various different Villager professions there may be. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Villager.Profession | 
getProfession()
Gets the current profession of this villager. 
 | 
void | 
setProfession(Villager.Profession profession)
Sets the new profession of this villager. 
 | 
canBreed, getAge, getAgeLock, isAdult, setAdult, setAge, setAgeLock, setBaby, setBreed_INVALID_getLastDamage, _INVALID_setLastDamage, addPotionEffect, addPotionEffect, addPotionEffects, getActivePotionEffects, getCanPickupItems, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getKiller, getLastDamage, getLastTwoTargetBlocks, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getNoDamageTicks, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlock, hasLineOfSight, hasPotionEffect, isLeashed, removePotionEffect, setCanPickupItems, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, shootArrow, throwEgg, throwSnowball_INVALID_damage, _INVALID_damage, _INVALID_getHealth, _INVALID_getMaxHealth, _INVALID_setHealth, _INVALID_setMaxHealth, damage, damage, getHealth, getMaxHealth, resetMaxHealth, setHealth, setMaxHealthlaunchProjectile, launchProjectileVillager.Profession getProfession()
void setProfession(Villager.Profession profession)
profession - New profession.Copyright © 2022. All rights reserved.