Enum Class ToolMaterials

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

public enum ToolMaterials extends Enum<ToolMaterials> implements ToolMaterial
Mappings:
Namespace Name
official bvi
intermediary net/minecraft/class_1834
named net/minecraft/item/ToolMaterials
  • Enum Constant Details

    • WOOD

      public static final ToolMaterials WOOD
      Mappings:
      Namespace Name Mixin selector
      official a Lbvi;a:Lbvi;
      intermediary field_8922 Lnet/minecraft/class_1834;field_8922:Lnet/minecraft/class_1834;
      named WOOD Lnet/minecraft/item/ToolMaterials;WOOD:Lnet/minecraft/item/ToolMaterials;
    • STONE

      public static final ToolMaterials STONE
      Mappings:
      Namespace Name Mixin selector
      official b Lbvi;b:Lbvi;
      intermediary field_8927 Lnet/minecraft/class_1834;field_8927:Lnet/minecraft/class_1834;
      named STONE Lnet/minecraft/item/ToolMaterials;STONE:Lnet/minecraft/item/ToolMaterials;
    • IRON

      public static final ToolMaterials IRON
      Mappings:
      Namespace Name Mixin selector
      official c Lbvi;c:Lbvi;
      intermediary field_8923 Lnet/minecraft/class_1834;field_8923:Lnet/minecraft/class_1834;
      named IRON Lnet/minecraft/item/ToolMaterials;IRON:Lnet/minecraft/item/ToolMaterials;
    • DIAMOND

      public static final ToolMaterials DIAMOND
      Mappings:
      Namespace Name Mixin selector
      official d Lbvi;d:Lbvi;
      intermediary field_8930 Lnet/minecraft/class_1834;field_8930:Lnet/minecraft/class_1834;
      named DIAMOND Lnet/minecraft/item/ToolMaterials;DIAMOND:Lnet/minecraft/item/ToolMaterials;
    • GOLD

      public static final ToolMaterials GOLD
      Mappings:
      Namespace Name Mixin selector
      official e Lbvi;e:Lbvi;
      intermediary field_8929 Lnet/minecraft/class_1834;field_8929:Lnet/minecraft/class_1834;
      named GOLD Lnet/minecraft/item/ToolMaterials;GOLD:Lnet/minecraft/item/ToolMaterials;
    • NETHERITE

      public static final ToolMaterials NETHERITE
      Mappings:
      Namespace Name Mixin selector
      official f Lbvi;f:Lbvi;
      intermediary field_22033 Lnet/minecraft/class_1834;field_22033:Lnet/minecraft/class_1834;
      named NETHERITE Lnet/minecraft/item/ToolMaterials;NETHERITE:Lnet/minecraft/item/ToolMaterials;
  • Field Details

    • miningLevel

      private final int miningLevel
      Mappings:
      Namespace Name Mixin selector
      official g Lbvi;g:I
      intermediary field_8925 Lnet/minecraft/class_1834;field_8925:I
      named miningLevel Lnet/minecraft/item/ToolMaterials;miningLevel:I
    • itemDurability

      private final int itemDurability
      Mappings:
      Namespace Name Mixin selector
      official h Lbvi;h:I
      intermediary field_8924 Lnet/minecraft/class_1834;field_8924:I
      named itemDurability Lnet/minecraft/item/ToolMaterials;itemDurability:I
    • miningSpeed

      private final float miningSpeed
      Mappings:
      Namespace Name Mixin selector
      official i Lbvi;i:F
      intermediary field_8932 Lnet/minecraft/class_1834;field_8932:F
      named miningSpeed Lnet/minecraft/item/ToolMaterials;miningSpeed:F
    • attackDamage

      private final float attackDamage
      Mappings:
      Namespace Name Mixin selector
      official j Lbvi;j:F
      intermediary field_8931 Lnet/minecraft/class_1834;field_8931:F
      named attackDamage Lnet/minecraft/item/ToolMaterials;attackDamage:F
    • enchantability

      private final int enchantability
      Mappings:
      Namespace Name Mixin selector
      official k Lbvi;k:I
      intermediary field_8933 Lnet/minecraft/class_1834;field_8933:I
      named enchantability Lnet/minecraft/item/ToolMaterials;enchantability:I
    • repairIngredient

      private final Lazy<Ingredient> repairIngredient
      Mappings:
      Namespace Name Mixin selector
      official l Lbvi;l:Laim;
      intermediary field_8928 Lnet/minecraft/class_1834;field_8928:Lnet/minecraft/class_3528;
      named repairIngredient Lnet/minecraft/item/ToolMaterials;repairIngredient:Lnet/minecraft/util/Lazy;
  • Constructor Details

    • ToolMaterials

      private ToolMaterials(int miningLevel, int itemDurability, float miningSpeed, float attackDamage, int enchantability, Supplier<Ingredient> repairIngredient)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbvi;<init>(Ljava/lang/String;IIIFFILjava/util/function/Supplier;)V
      intermediary <init> Lnet/minecraft/class_1834;<init>(Ljava/lang/String;IIIFFILjava/util/function/Supplier;)V
      named <init> Lnet/minecraft/item/ToolMaterials;<init>(Ljava/lang/String;IIIFFILjava/util/function/Supplier;)V
  • Method Details

    • values

      public static ToolMaterials[] 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 ToolMaterials 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()
      Specified by:
      getDurability in interface ToolMaterial
      Mappings:
      Namespace Name Mixin selector
      official a Lbvg;a()I
      intermediary method_8025 Lnet/minecraft/class_1832;method_8025()I
      named getDurability Lnet/minecraft/item/ToolMaterial;getDurability()I
    • getMiningSpeedMultiplier

      public float getMiningSpeedMultiplier()
      Specified by:
      getMiningSpeedMultiplier in interface ToolMaterial
      Mappings:
      Namespace Name Mixin selector
      official b Lbvg;b()F
      intermediary method_8027 Lnet/minecraft/class_1832;method_8027()F
      named getMiningSpeedMultiplier Lnet/minecraft/item/ToolMaterial;getMiningSpeedMultiplier()F
    • getAttackDamage

      public float getAttackDamage()
      Specified by:
      getAttackDamage in interface ToolMaterial
      Mappings:
      Namespace Name Mixin selector
      official c Lbvg;c()F
      intermediary method_8028 Lnet/minecraft/class_1832;method_8028()F
      named getAttackDamage Lnet/minecraft/item/ToolMaterial;getAttackDamage()F
    • getMiningLevel

      public int getMiningLevel()
      Specified by:
      getMiningLevel in interface ToolMaterial
      Mappings:
      Namespace Name Mixin selector
      official d Lbvg;d()I
      intermediary method_8024 Lnet/minecraft/class_1832;method_8024()I
      named getMiningLevel Lnet/minecraft/item/ToolMaterial;getMiningLevel()I
    • getEnchantability

      public int getEnchantability()
      Specified by:
      getEnchantability in interface ToolMaterial
      Mappings:
      Namespace Name Mixin selector
      official e Lbvg;e()I
      intermediary method_8026 Lnet/minecraft/class_1832;method_8026()I
      named getEnchantability Lnet/minecraft/item/ToolMaterial;getEnchantability()I
    • getRepairIngredient

      public Ingredient getRepairIngredient()
      Specified by:
      getRepairIngredient in interface ToolMaterial
      Mappings:
      Namespace Name Mixin selector
      official f Lbvg;f()Lbwm;
      intermediary method_8023 Lnet/minecraft/class_1832;method_8023()Lnet/minecraft/class_1856;
      named getRepairIngredient Lnet/minecraft/item/ToolMaterial;getRepairIngredient()Lnet/minecraft/recipe/Ingredient;