Enum Class GraveType

java.lang.Object
java.lang.Enum<GraveType>
com.minecolonies.api.blocks.types.GraveType
All Implemented Interfaces:
Serializable, Comparable<GraveType>, Constable, net.minecraft.util.StringRepresentable

public enum GraveType extends Enum<GraveType> implements net.minecraft.util.StringRepresentable
Defines the types of Grave that the AbstractBlockMinecoloniesGrave supports.
  • Enum Constant Details

    • DEFAULT

      public static final GraveType DEFAULT
    • DECAYED

      public static final GraveType DECAYED
  • Method Details

    • values

      public static GraveType[] 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 GraveType 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
    • byMetadata

      public static GraveType byMetadata(int meta)
    • getMetadata

      public int getMetadata()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<GraveType>
    • getName

      public String getName()
    • getTranslationKey

      public String getTranslationKey()
    • getSerializedName

      public String getSerializedName()
      Specified by:
      getSerializedName in interface net.minecraft.util.StringRepresentable