类 MiningLevels


  • public final class MiningLevels
    extends Object
    Constants of Mining Levels.

    Mining levels are used by blocks to determine the strength of the tools required to successfully harvest them.
    All tool materials have an assigned mining level. If a tool's mining level is equal to or greater than the block's, the tool will apply its efficiency bonus and the block will drop its loot table.

    Blocks without mining levels, or items that aren't tools, use HAND.

    另请参阅:
    ToolMaterial#getMiningLevel
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      static int DIAMOND
      Blocks with this level require a Diamond tool or better to harvest.
      static int HAND
      Blocks with this level do not require a tool to harvest.
      static int IRON
      Blocks with this level require an Iron tool or better to harvest.
      static int NETHERITE
      Blocks with this level require a Netherite tool or better to harvest.
      static int STONE
      Blocks with this level require a Stone tool or better to harvest.
      static int WOOD
      Blocks with this level require a Wooden tool or better to harvest.
    • 构造器概要

      构造器 
      限定符 构造器 说明
      private MiningLevels()  
    • 字段详细资料

      • HAND

        public static final int HAND
        Blocks with this level do not require a tool to harvest.
        This is the default level for blocks and items.
        另请参阅:
        常量字段值
      • WOOD

        public static final int WOOD
        Blocks with this level require a Wooden tool or better to harvest.
        In addition to Wooden Tools, Golden Tools also use this level.
        另请参阅:
        常量字段值
      • STONE

        public static final int STONE
        Blocks with this level require a Stone tool or better to harvest.
        另请参阅:
        常量字段值
      • IRON

        public static final int IRON
        Blocks with this level require an Iron tool or better to harvest.
        另请参阅:
        常量字段值
      • DIAMOND

        public static final int DIAMOND
        Blocks with this level require a Diamond tool or better to harvest.
        另请参阅:
        常量字段值
      • NETHERITE

        public static final int NETHERITE
        Blocks with this level require a Netherite tool or better to harvest.
        另请参阅:
        常量字段值
    • 构造器详细资料

      • MiningLevels

        private MiningLevels()