Package org.bukkit.entity
Interface Villager.Type
- All Superinterfaces:
- Comparable<Villager.Type>,- Keyed,- OldEnum<Villager.Type>,- RegistryAware
- Enclosing interface:
- Villager
Represents Villager type, usually corresponding to what biome they spawn
 in.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Villager.Typestatic final Villager.Typestatic final Villager.Typestatic final Villager.Typestatic final Villager.Typestatic final Villager.Typestatic final Villager.Type
- 
Method SummaryModifier and TypeMethodDescriptiongetKey()Deprecated.static Villager.TypeDeprecated.only for backwards compatibility, useRegistry.get(NamespacedKey)instead.static Villager.Type[]values()Deprecated.useIterable.iterator().Methods inherited from interface org.bukkit.registry.RegistryAwaregetKeyOrNull, getKeyOrThrow, isRegistered
- 
Field Details- 
DESERT
- 
JUNGLE
- 
PLAINS
- 
SAVANNA
- 
SNOW
- 
SWAMP
- 
TAIGA
 
- 
- 
Method Details- 
getKeyDeprecated.A key might not always be present, useRegistryAware.getKeyOrThrow()instead.Return the namespaced identifier for this object.
- 
valueOfDeprecated.only for backwards compatibility, useRegistry.get(NamespacedKey)instead.- Parameters:
- name- of the villager type.
- Returns:
- the villager type with the given name.
 
- 
valuesDeprecated.useIterable.iterator().- Returns:
- an array of all known villager types.
 
 
- 
RegistryAware.getKeyOrThrow()instead.