Enum Class Axolotl.Variant

java.lang.Object
java.lang.Enum<Axolotl.Variant>
net.minecraft.world.entity.animal.axolotl.Axolotl.Variant
All Implemented Interfaces:
Serializable, Comparable<Axolotl.Variant>, Constable
Enclosing class:
Axolotl

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

  • Field Details

    • BY_ID

      public static final Axolotl.Variant[] BY_ID
    • id

      private final int id
    • name

      private final String name
    • common

      private final boolean common
  • Constructor Details

    • Variant

      private Variant(int p_149239_, String p_149240_, boolean p_149241_)
  • Method Details

    • values

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

      public static Axolotl.Variant valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getId

      public int getId()
    • getName

      public String getName()
    • getCommonSpawnVariant

      public static Axolotl.Variant getCommonSpawnVariant(RandomSource p_218449_)
    • getRareSpawnVariant

      public static Axolotl.Variant getRareSpawnVariant(RandomSource p_218454_)
    • getSpawnVariant

      private static Axolotl.Variant getSpawnVariant(RandomSource p_218451_, boolean p_218452_)