Package org.bukkit.entity
Interface Villager.Type
- All Superinterfaces:
Comparable<Villager.Type>,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 Villager.TypeDeprecated.static Villager.Type[]values()Deprecated.useIterable.iterator().
-
Field Details
-
DESERT
-
JUNGLE
-
PLAINS
-
SAVANNA
-
SNOW
-
SWAMP
-
TAIGA
-
-
Method Details
-
valueOf
Deprecated.only for backwards compatibility, useRegistry.get(NamespacedKey)instead.- Parameters:
name- of the villager type.- Returns:
- the villager type with the given name.
-
values
Deprecated.useIterable.iterator().- Returns:
- an array of all known villager types.
-
Registry.get(NamespacedKey)instead.