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, StringRepresentable
Enclosing class:
Axolotl

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

  • Field Details

    • BY_ID

      private static final IntFunction<Axolotl.Variant> BY_ID
    • CODEC

      public static final com.mojang.serialization.Codec<Axolotl.Variant> CODEC
    • 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()
    • getSerializedName

      public String getSerializedName()
      Specified by:
      getSerializedName in interface StringRepresentable
    • byId

      public static Axolotl.Variant byId(int p_262930_)
    • 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_)