Enum MiningLevel

  • All Implemented Interfaces:
    java.io.Serializable , kotlin.Comparable

    
    public enum MiningLevel
    extends Enum<MiningLevel>
                        

    Represents the blocks that a tool made of some material is allowed to break.

    For example, at a mining level of iron you cannot break obsidian.

    • Method Detail

      • isAtLeast

         final Boolean isAtLeast(MiningLevel level)
        Returns:

        Whether this mining level is at least the given level. For example, iron is at least any, wood, stone, gold, and iron.

      • values

         final Array<MiningLevel> values()

        Returns an array containing the constants of this enum type, in the order they're declared.

        This method may be used to iterate over the constants.

      • valueOf

         final MiningLevel valueOf(String value)

        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.)

      • getEntries

         final EnumEntries<MiningLevel> getEntries()

        Returns a representation of an immutable list of all enum entries, in the order they're declared.

        This method may be used to iterate over the enum entries.