接口 Villager.Type
- 所有超级接口:
Comparable<Villager.Type>
,Keyed
,OldEnum<Villager.Type>
- 封闭接口:
- 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
-
方法概要
修饰符和类型方法说明static @NotNull Villager.Type
已过时。static @NotNull Villager.Type[]
values()
已过时。useIterable.iterator()
.
-
字段详细资料
-
DESERT
-
JUNGLE
-
PLAINS
-
SAVANNA
-
SNOW
-
SWAMP
-
TAIGA
-
-
方法详细资料
-
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.
-
Registry.get(NamespacedKey)
instead.