Enum Class Mooshroom.Variant

java.lang.Object
java.lang.Enum<Mooshroom.Variant>
fr.fidorial.entity.mob.creature.Mooshroom.Variant
All Implemented Interfaces:
Serializable, Comparable<Mooshroom.Variant>, Constable
Enclosing interface:
Mooshroom

public static enum Mooshroom.Variant extends Enum<Mooshroom.Variant>
The colour of a mooshroom, in the order of the game's ids.
Since:
0.1.0
  • Enum Constant Details

    • RED

      public static final Mooshroom.Variant RED
      Red, with red mushrooms.
      Since:
      0.1.0
    • BROWN

      public static final Mooshroom.Variant BROWN
      Brown, with brown mushrooms; one that ate a flower gives a suspicious stew.
      Since:
      0.1.0
  • Method Details

    • values

      public static Mooshroom.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 Mooshroom.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
    • mushroom

      public TypedKey<Item> mushroom()
      Returns the mushroom that grows on a mooshroom of this colour.
      Returns:
      the mushroom that grows on a mooshroom of this colour
      Since:
      0.1.0