| Package | Description |
|---|---|
| org.bukkit |
More generalized classes in the API.
|
| org.bukkit.entity |
Interfaces for non-voxel objects that can exist in a
world, including all players, monsters, projectiles, etc. |
| org.bukkit.event.entity |
| Modifier and Type | Field and Description |
|---|---|
static Registry<Villager.Profession> |
Registry.VILLAGER_PROFESSION
Villager profession.
|
static Registry<Villager.Profession> |
Registry.VILLAGER_PROFESSION
Villager profession.
|
| Modifier and Type | Method and Description |
|---|---|
Villager.Profession |
Villager.getProfession()
Gets the current profession of this villager.
|
Villager.Profession |
Villager.getProfession()
Gets the current profession of this villager.
|
Villager.Profession |
Zombie.getVillagerProfession()
Deprecated.
|
Villager.Profession |
ZombieVillager.getVillagerProfession()
Returns the villager profession of this zombie.
|
Villager.Profession |
ZombieVillager.getVillagerProfession()
Returns the villager profession of this zombie.
|
Villager.Profession |
Zombie.getVillagerProfession()
Deprecated.
|
static Villager.Profession |
Villager.Profession.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
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.
|
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 |
Villager.setProfession(Villager.Profession profession)
Sets the new profession of this villager.
|
void |
Zombie.setVillagerProfession(Villager.Profession profession)
Deprecated.
|
void |
ZombieVillager.setVillagerProfession(Villager.Profession profession)
Sets the villager profession of this zombie.
|
void |
ZombieVillager.setVillagerProfession(Villager.Profession profession)
Sets the villager profession of this zombie.
|
void |
Zombie.setVillagerProfession(Villager.Profession profession)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Villager.Profession |
VillagerCareerChangeEvent.getProfession()
Gets the future profession of the villager.
|
Villager.Profession |
VillagerCareerChangeEvent.getProfession()
Gets the future profession of the villager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
VillagerCareerChangeEvent.setProfession(Villager.Profession profession)
Sets the profession the villager will become from this event.
|
void |
VillagerCareerChangeEvent.setProfession(Villager.Profession profession)
Sets the profession the villager will become from this event.
|
| Constructor and Description |
|---|
VillagerCareerChangeEvent(Villager what,
Villager.Profession profession,
VillagerCareerChangeEvent.ChangeReason reason) |
VillagerCareerChangeEvent(Villager what,
Villager.Profession profession,
VillagerCareerChangeEvent.ChangeReason reason) |
Copyright © 2022. All rights reserved.