接口 Villager.Type
- 所有超级接口:
Comparable<Villager.Type>,Keyed,OldEnum<Villager.Type>,RegistryAware
- 封闭接口:
- Villager
表示村民类型,通常对应它们生成的生物群系。
-
字段概要
字段修饰符和类型字段说明static final Villager.Typestatic final Villager.Typestatic final Villager.Typestatic final Villager.Typestatic final Villager.Typestatic final Villager.Typestatic final Villager.Type -
方法概要
修饰符和类型方法说明getKey()已过时。static @NotNull Villager.Type已过时。仅为向后兼容,请使用Registry.get(NamespacedKey)代替。static @NotNull Villager.Type[]values()已过时。从接口继承的方法 org.bukkit.registry.RegistryAware
getKeyOrNull, getKeyOrThrow, isRegistered
-
字段详细资料
-
DESERT
-
JUNGLE
-
PLAINS
-
SAVANNA
-
SNOW
-
SWAMP
-
TAIGA
-
-
方法详细资料
-
getKey
已过时。密钥可能并不总是存在,请使用RegistryAware.getKeyOrThrow()代替。原文:返回用于此对象的命名空间标识符.
原文:Return the namespaced identifier for this object.
返回用于此对象的命名空间标识符.原文:Return the namespaced identifier for this object.
-
valueOf
@NotNull @Deprecated(since="1.21") static @NotNull Villager.Type valueOf(@NotNull @NotNull String name) 已过时。仅为向后兼容,请使用Registry.get(NamespacedKey)代替。原文:@param name of the villager type.
- 参数:
name- 村民类型名称。- 返回:
- 具有给定名称的村民类型。
-
values
已过时。请使用Iterable.iterator()。原文:@return an array of all known villager types.
- 返回:
- 所有已知村民类型的数组。
-
RegistryAware.getKeyOrThrow()代替。