Ageable
, Attributable
, CommandSender
, Creature
, Damageable
, Entity
, InventoryHolder
, LivingEntity
, Merchant
, Metadatable
, Nameable
, NPC
, Permissible
, ProjectileSource
, ServerOperator
public interface Villager extends Ageable, NPC, InventoryHolder, Merchant
Modifier and Type | Interface | Description |
---|---|---|
static class |
Villager.Profession |
Represents the various different Villager professions there may be.
|
Modifier and Type | Method | Description |
---|---|---|
Inventory |
getInventory() |
Gets this villager's inventory.
|
Villager.Profession |
getProfession() |
Gets the current profession of this villager.
|
int |
getRiches() |
Gets this villager's riches, the number of emeralds this villager has
been given.
|
void |
setProfession(Villager.Profession profession) |
Sets the new profession of this villager.
|
void |
setRiches(int riches) |
Sets this villager's riches.
|
canBreed, getAge, getAgeLock, isAdult, setAdult, setAge, setAgeLock, setBaby, setBreed
getAttribute
_INVALID_damage, _INVALID_damage, _INVALID_getHealth, _INVALID_getMaxHealth, _INVALID_setHealth, _INVALID_setMaxHealth, damage, damage, getHealth, getMaxHealth, resetMaxHealth, setHealth, setMaxHealth
_INVALID_getLastDamage, _INVALID_setLastDamage, addPotionEffect, addPotionEffect, addPotionEffects, getActivePotionEffects, getCanPickupItems, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getKiller, getLastDamage, getLastTwoTargetBlocks, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getNoDamageTicks, getPotionEffect, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, getTargetBlock, hasAI, hasLineOfSight, hasPotionEffect, isCollidable, isGliding, isLeashed, removePotionEffect, setAI, setCanPickupItems, setCollidable, setGliding, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway
getRecipe, getRecipeCount, getRecipes, getTrader, isTrading, setRecipe, setRecipes
launchProjectile, launchProjectile
Villager.Profession getProfession()
void setProfession(Villager.Profession profession)
profession
- New profession.Inventory getInventory()
getInventory
in interface InventoryHolder
int getRiches()
void setRiches(int riches)
riches
- the new richesgetRiches()