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 Summary
Modifier and TypeFieldDescriptionstatic final Villager.Type
static final Villager.Type
static final Villager.Type
static final Villager.Type
static final Villager.Type
static final Villager.Type
static final Villager.Type
-
Method Summary
Modifier and TypeMethodDescriptiongetKey()
Deprecated.static Villager.Type
Deprecated.only for backwards compatibility, useRegistry.get(NamespacedKey)
instead.static Villager.Type[]
values()
Deprecated.useIterable.iterator()
.Methods inherited from interface org.bukkit.registry.RegistryAware
getKeyOrNull, getKeyOrThrow, isRegistered
-
Field Details
-
DESERT
-
JUNGLE
-
PLAINS
-
SAVANNA
-
SNOW
-
SWAMP
-
TAIGA
-
-
Method Details
-
getKey
Deprecated.A key might not always be present, useRegistryAware.getKeyOrThrow()
instead.Return the namespaced identifier for this object. -
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.
-
RegistryAware.getKeyOrThrow()
instead.