org.bukkit.entity
Interface Villager

All Superinterfaces:
Ageable, Creature, Damageable, Entity, LivingEntity, Metadatable, NPC

public interface Villager
extends Ageable, NPC

Represents a villager NPC


Nested Class Summary
static class Villager.Profession
          Represents the various different Villager professions there may be.
 
Method Summary
 Villager.Profession getProfession()
          Gets the current profession of this villager.
 void setProfession(Villager.Profession profession)
          Sets the new profession of this villager.
 
Methods inherited from interface org.bukkit.entity.Ageable
canBreed, getAge, getAgeLock, isAdult, setAdult, setAge, setAgeLock, setBaby, setBreed
 
Methods inherited from interface org.bukkit.entity.Creature
getTarget, setTarget
 
Methods inherited from interface org.bukkit.entity.LivingEntity
_INVALID_getLastDamage, _INVALID_setLastDamage, addPotionEffect, addPotionEffect, addPotionEffects, getActivePotionEffects, getCanPickupItems, getCustomName, getEquipment, getEyeHeight, getEyeHeight, getEyeLocation, getKiller, getLastDamage, getLastTwoTargetBlocks, getLeashHolder, getLineOfSight, getMaximumAir, getMaximumNoDamageTicks, getNoDamageTicks, getRemainingAir, getRemoveWhenFarAway, getTargetBlock, hasLineOfSight, hasPotionEffect, isCustomNameVisible, isLeashed, launchProjectile, removePotionEffect, setCanPickupItems, setCustomName, setCustomNameVisible, setLastDamage, setLeashHolder, setMaximumAir, setMaximumNoDamageTicks, setNoDamageTicks, setRemainingAir, setRemoveWhenFarAway, shootArrow, throwEgg, throwSnowball
 
Methods inherited from interface org.bukkit.entity.Damageable
_INVALID_damage, _INVALID_damage, _INVALID_getHealth, _INVALID_getMaxHealth, _INVALID_setHealth, _INVALID_setMaxHealth, damage, damage, getHealth, getMaxHealth, resetMaxHealth, setHealth, setMaxHealth
 

Method Detail

getProfession

Villager.Profession getProfession()
Gets the current profession of this villager.

Returns:
Current profession.

setProfession

void setProfession(Villager.Profession profession)
Sets the new profession of this villager.

Parameters:
profession - New profession.


Copyright © 2013. All Rights Reserved.