Uses of Enum Class
org.bukkit.entity.Villager.Profession
Package
Description
The root package of the Bukkit API, contains generalized API classes.
Interfaces for non-voxel objects that can exist in a
world
, including all players, monsters, projectiles, etc.-
Uses of Villager.Profession in org.bukkit
Modifier and TypeFieldDescriptionstatic final Registry<Villager.Profession>
Registry.VILLAGER_PROFESSION
Villager profession. -
Uses of Villager.Profession in org.bukkit.entity
Modifier and TypeMethodDescriptionVillager.getProfession()
Gets the current profession of this villager.Zombie.getVillagerProfession()
Deprecated.ZombieVillager.getVillagerProfession()
Returns the villager profession of this zombie.static Villager.Profession
Returns the enum constant of this class with the specified name.static Villager.Profession[]
Villager.Profession.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionvoid
Villager.setProfession
(@NotNull 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. -
Uses of Villager.Profession in org.bukkit.event.entity
Modifier and TypeMethodDescriptionVillagerCareerChangeEvent.getProfession()
Gets the future profession of the villager.Modifier and TypeMethodDescriptionvoid
VillagerCareerChangeEvent.setProfession
(@NotNull Villager.Profession profession) Sets the profession the villager will become from this event.ModifierConstructorDescriptionVillagerCareerChangeEvent
(@NotNull Villager what, @NotNull Villager.Profession profession, @NotNull VillagerCareerChangeEvent.ChangeReason reason)