程序包 org.bukkit.entity

# 接口 Villager.Type

所有超级接口:
  `Comparable<Villager.Type>`, `Keyed`, `OldEnum<Villager.Type>`

封闭接口:
  Villager

public static interface Villager.Type extends OldEnum<Villager.Type>, Keyed
Represents Villager type, usually corresponding to what biome they spawn in.

- ## 字段概要

  字段
  修饰符和类型
  字段
  说明
  `static final Villager.Type`
  `DESERT`
  `static final Villager.Type`
  `JUNGLE`
  `static final Villager.Type`
  `PLAINS`
  `static final Villager.Type`
  `SAVANNA`
  `static final Villager.Type`
  `SNOW`
  `static final Villager.Type`
  `SWAMP`
  `static final Villager.Type`
  `TAIGA`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `static @NotNull Villager.Type`
  `valueOf(@NotNull String name)`
  已过时。
  only for backwards compatibility, use `Registry.get(NamespacedKey)` instead.
  `static @NotNull Villager.Type[]`
  `values()`
  已过时。
  use `Iterable.iterator()`.

  ### 从接口继承的方法 org.bukkit.Keyed

  `getKey`

  ### 从接口继承的方法 org.bukkit.util.OldEnum

  `compareTo, name, ordinal`

- ## 字段详细资料

  - ### DESERT

    static final Villager.Type DESERT

  - ### JUNGLE

    static final Villager.Type JUNGLE

  - ### PLAINS

    static final Villager.Type PLAINS

  - ### SAVANNA

    static final Villager.Type SAVANNA

  - ### SNOW

    static final Villager.Type SNOW

  - ### SWAMP

    static final Villager.Type SWAMP

  - ### TAIGA

    static final Villager.Type TAIGA

- ## 方法详细资料

  - ### valueOf

    @NotNull @Deprecated(since="1.21") static @NotNull Villager.Type valueOf(@NotNull @NotNull String name)
    已过时。
    only for backwards compatibility, use `Registry.get(NamespacedKey)` instead.
    参数:
      `name` - of the villager type.
    返回:
      the villager type with the given name.

  - ### values

    @NotNull @Deprecated(since="1.21") static @NotNull Villager.Type[] values()
    已过时。
    use `Iterable.iterator()`.
    返回:
      an array of all known villager types.