Interface Villager.Type

All Superinterfaces:
Comparable<Villager.Type>, net.kyori.adventure.key.Keyed, Keyed, OldEnum<Villager.Type>
Enclosing interface:
Villager

public static interface Villager.Type extends OldEnum<Villager.Type>, Keyed
Represents Villager type, usually corresponding to what biome they spawn in.
Since:
1.14
  • Field Details

  • Method Details

    • valueOf

      @NotNull @Deprecated(since="1.21", forRemoval=true) @ScheduledForRemoval(inVersion="1.22") static @NotNull Villager.Type valueOf(@NotNull @NotNull String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
      only for backwards compatibility, use Registry.get(NamespacedKey) instead.
      Parameters:
      name - of the villager type.
      Returns:
      the villager type with the given name.
    • values

      @NotNull @Deprecated(since="1.21", forRemoval=true) @ScheduledForRemoval(inVersion="1.22") static @NotNull Villager.Type[] values()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      an array of all known villager types.