Package | Description |
---|---|
org.bukkit.entity |
Interfaces for non-voxel objects that can exist in a
world , including all players, monsters, projectiles, etc. |
Modifier and Type | Method and Description |
---|---|
Villager.Profession |
Villager.getProfession()
Gets the current profession of this villager.
|
static Villager.Profession |
Villager.Profession.getProfession(int id)
Deprecated.
Magic value
|
Villager.Profession |
Zombie.getVillagerProfession()
Returns the villager profession of the zombie if the
zombie is a villager
|
static Villager.Profession |
Villager.Profession.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Villager.Profession[] |
Villager.Profession.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
Villager.setProfession(Villager.Profession profession)
Sets the new profession of this villager.
|
void |
Zombie.setVillagerProfession(Villager.Profession profession)
Sets whether the zombie is a villager
|
Copyright © 2016. All rights reserved.