Enum AxolotlEntity.Variant

java.lang.Object
java.lang.Enum<AxolotlEntity.Variant>
net.minecraft.entity.passive.AxolotlEntity.Variant
All Implemented Interfaces:
Serializable, Comparable<AxolotlEntity.Variant>, java.lang.constant.Constable
Enclosing class:
AxolotlEntity

public static enum AxolotlEntity.Variant
extends Enum<AxolotlEntity.Variant>
  • Enum Constant Details

  • Field Details

    • VARIANTS

      public static final AxolotlEntity.Variant[] VARIANTS
    • id

      private final int id
    • name

      private final String name
    • natural

      private final boolean natural
  • Constructor Details

    • Variant

      private Variant​(int id, String name, boolean natural)
  • Method Details

    • values

      public static AxolotlEntity.Variant[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AxolotlEntity.Variant valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getId

      public int getId()
    • getName

      @Environment(CLIENT) public String getName()
    • getRandomAll

      public static AxolotlEntity.Variant getRandomAll​(Random random)
    • getRandomNatural

      public static AxolotlEntity.Variant getRandomNatural​(Random random)
    • getRandom

      private static AxolotlEntity.Variant getRandom​(Random random, boolean includeUnnatural)