接口 Villager.Type
- 所有超级接口:
Comparable<Villager.Type>
,Keyed
,OldEnum<Villager.Type>
,RegistryAware
- 封闭接口:
- Villager
Represents Villager type, usually corresponding to what biome they spawn
in.
-
字段概要
字段修饰符和类型字段说明static 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
-
方法概要
修饰符和类型方法说明getKey()
已过时。static @NotNull Villager.Type
已过时。only for backwards compatibility, useRegistry.get(NamespacedKey)
instead.static @NotNull Villager.Type[]
values()
已过时。useIterable.iterator()
.从接口继承的方法 org.bukkit.registry.RegistryAware
getKeyOrNull, getKeyOrThrow, isRegistered
-
字段详细资料
-
DESERT
-
JUNGLE
-
PLAINS
-
SAVANNA
-
SNOW
-
SWAMP
-
TAIGA
-
-
方法详细资料
-
getKey
已过时。A key might not always be present, useRegistryAware.getKeyOrThrow()
instead.返回用于此对象的命名空间标识符.原文:Return the namespaced identifier for this object.
-
valueOf
@NotNull @Deprecated(since="1.21") static @NotNull Villager.Type valueOf(@NotNull @NotNull String name) 已过时。only for backwards compatibility, useRegistry.get(NamespacedKey)
instead.- 参数:
name
- of the villager type.- 返回:
- the villager type with the given name.
-
values
已过时。useIterable.iterator()
.- 返回:
- an array of all known villager types.
-
RegistryAware.getKeyOrThrow()
instead.