Package org.bukkit.entity
Interface Villager.Type
- All Superinterfaces:
Comparable<Villager.Type>,Keyed,Keyed,OldEnum<Villager.Type>
- Enclosing interface:
Villager
Represents Villager type, usually corresponding to what biome they spawn
in.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Villager.Typestatic final Villager.Typestatic final Villager.Typestatic final Villager.Typestatic final Villager.Typestatic final Villager.Typestatic final Villager.Type -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Villager.TypeDeprecated, for removal: This API element is subject to removal in a future version.static @NotNull Villager.Type[]values()Deprecated, for removal: This API element is subject to removal in a future version.useIterable.iterator().
-
Field Details
-
DESERT
-
JUNGLE
-
PLAINS
-
SAVANNA
-
SNOW
-
SWAMP
-
TAIGA
-
-
Method Details
-
valueOf
@NotNull @Deprecated(since="1.21", forRemoval=true) @ScheduledForRemoval(inVersion="1.22") static @NotNull Villager.Type valueOf(@NotNull @NotNull String name) Deprecated, for removal: This API element is subject to removal in a future version.only for backwards compatibility, useRegistry.get(NamespacedKey)instead.- Parameters:
name- of the villager type.- Returns:
- the villager type with the given name.
-
values
@NotNull @Deprecated(since="1.21", forRemoval=true) @ScheduledForRemoval(inVersion="1.22") static @NotNull Villager.Type[] values()Deprecated, for removal: This API element is subject to removal in a future version.useIterable.iterator().- Returns:
- an array of all known villager types.
-
Registry.get(NamespacedKey)instead.