Enum Class ToolMaterial

java.lang.Object
java.lang.Enum<ToolMaterial>
net.minecraft.item.ToolMaterial
All Implemented Interfaces:
Serializable, Comparable<ToolMaterial>, Constable

public enum ToolMaterial extends Enum<ToolMaterial>
Mappings:
Namespace Name
intermediary net/minecraft/class_428
glue class_47
server bb
client bu
named net/minecraft/item/ToolMaterial
  • Enum Constant Details

    • WOOD

      public static final ToolMaterial WOOD
      Mappings:
      Namespace Name Mixin selector
      intermediary field_1688 Lnet/minecraft/class_428;field_1688:Lnet/minecraft/class_428;
      glue field_77 Lclass_47;field_77:Lclass_47;
      server a Lbb;a:Lbb;
      client a Lbu;a:Lbu;
      named WOOD Lnet/minecraft/item/ToolMaterial;WOOD:Lnet/minecraft/item/ToolMaterial;
    • STONE

      public static final ToolMaterial STONE
      Mappings:
      Namespace Name Mixin selector
      intermediary field_1689 Lnet/minecraft/class_428;field_1689:Lnet/minecraft/class_428;
      glue field_78 Lclass_47;field_78:Lclass_47;
      server b Lbb;b:Lbb;
      client b Lbu;b:Lbu;
      named STONE Lnet/minecraft/item/ToolMaterial;STONE:Lnet/minecraft/item/ToolMaterial;
    • IRON

      public static final ToolMaterial IRON
      Mappings:
      Namespace Name Mixin selector
      intermediary field_1690 Lnet/minecraft/class_428;field_1690:Lnet/minecraft/class_428;
      glue field_79 Lclass_47;field_79:Lclass_47;
      server c Lbb;c:Lbb;
      client c Lbu;c:Lbu;
      named IRON Lnet/minecraft/item/ToolMaterial;IRON:Lnet/minecraft/item/ToolMaterial;
    • DIAMOND

      public static final ToolMaterial DIAMOND
      Mappings:
      Namespace Name Mixin selector
      intermediary field_1691 Lnet/minecraft/class_428;field_1691:Lnet/minecraft/class_428;
      glue field_80 Lclass_47;field_80:Lclass_47;
      server d Lbb;d:Lbb;
      client d Lbu;d:Lbu;
      named DIAMOND Lnet/minecraft/item/ToolMaterial;DIAMOND:Lnet/minecraft/item/ToolMaterial;
    • GOLD

      public static final ToolMaterial GOLD
      Mappings:
      Namespace Name Mixin selector
      intermediary field_1692 Lnet/minecraft/class_428;field_1692:Lnet/minecraft/class_428;
      glue field_81 Lclass_47;field_81:Lclass_47;
      server e Lbb;e:Lbb;
      client e Lbu;e:Lbu;
      named GOLD Lnet/minecraft/item/ToolMaterial;GOLD:Lnet/minecraft/item/ToolMaterial;
  • Field Details

    • miningLevel

      private final int miningLevel
      Mappings:
      Namespace Name Mixin selector
      intermediary field_1693 Lnet/minecraft/class_428;field_1693:I
      glue field_82 Lclass_47;field_82:I
      server f Lbb;f:I
      client f Lbu;f:I
      named miningLevel Lnet/minecraft/item/ToolMaterial;miningLevel:I
    • durability

      private final int durability
      Mappings:
      Namespace Name Mixin selector
      intermediary field_1694 Lnet/minecraft/class_428;field_1694:I
      glue field_83 Lclass_47;field_83:I
      server g Lbb;g:I
      client g Lbu;g:I
      named durability Lnet/minecraft/item/ToolMaterial;durability:I
    • miningSpeed

      private final float miningSpeed
      Mappings:
      Namespace Name Mixin selector
      intermediary field_1695 Lnet/minecraft/class_428;field_1695:F
      glue field_84 Lclass_47;field_84:F
      server h Lbb;h:F
      client h Lbu;h:F
      named miningSpeed Lnet/minecraft/item/ToolMaterial;miningSpeed:F
    • damage

      private final int damage
      Mappings:
      Namespace Name Mixin selector
      intermediary field_1696 Lnet/minecraft/class_428;field_1696:I
      glue field_85 Lclass_47;field_85:I
      server i Lbb;i:I
      client i Lbu;i:I
      named damage Lnet/minecraft/item/ToolMaterial;damage:I
  • Constructor Details

    • ToolMaterial

      private ToolMaterial(int miningLevel, int durability, float float2, int int2)
      Mappings:
      Namespace Name Mixin selector
      intermediary <init> Lnet/minecraft/class_428;<init>(Ljava/lang/String;IIIFI)V
      glue <init> Lclass_47;<init>(Ljava/lang/String;IIIFI)V
      server <init> Lbb;<init>(Ljava/lang/String;IIIFI)V
      client <init> Lbu;<init>(Ljava/lang/String;IIIFI)V
      named <init> Lnet/minecraft/item/ToolMaterial;<init>(Ljava/lang/String;IIIFI)V
  • Method Details

    • values

      public static ToolMaterial[] 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 ToolMaterial 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
    • getDurability

      public int getDurability()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1417 Lnet/minecraft/class_428;method_1417()I
      glue method_142 Lclass_47;method_142()I
      server a Lbb;a()I
      client a Lbu;a()I
      named getDurability Lnet/minecraft/item/ToolMaterial;getDurability()I
    • getMiningSpeed

      public float getMiningSpeed()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1418 Lnet/minecraft/class_428;method_1418()F
      glue method_143 Lclass_47;method_143()F
      server b Lbb;b()F
      client b Lbu;b()F
      named getMiningSpeed Lnet/minecraft/item/ToolMaterial;getMiningSpeed()F
    • getDamage

      public int getDamage()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1419 Lnet/minecraft/class_428;method_1419()I
      glue method_144 Lclass_47;method_144()I
      server c Lbb;c()I
      client c Lbu;c()I
      named getDamage Lnet/minecraft/item/ToolMaterial;getDamage()I
    • getMiningLevel

      public int getMiningLevel()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1420 Lnet/minecraft/class_428;method_1420()I
      glue method_145 Lclass_47;method_145()I
      server d Lbb;d()I
      client d Lbu;d()I
      named getMiningLevel Lnet/minecraft/item/ToolMaterial;getMiningLevel()I