Package net.minecraft.item
Enum ToolMaterials
- All Implemented Interfaces:
Serializable,Comparable<ToolMaterials>,java.lang.constant.Constable,ToolMaterial
public enum ToolMaterials extends Enum<ToolMaterials> implements ToolMaterial
- Mappings:
Namespace Name official bphintermediary net/minecraft/class_1834named net/minecraft/item/ToolMaterials
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description private floatattackDamageprivate intenchantabilityprivate intitemDurabilityprivate intminingLevelprivate floatminingSpeedprivate Lazy<Ingredient>repairIngredient -
Constructor Summary
Constructors Modifier Constructor Description privateToolMaterials(int miningLevel, int itemDurability, float miningSpeed, float attackDamage, int enchantability, Supplier<Ingredient> repairIngredient) -
Method Summary
Modifier and Type Method Description floatgetAttackDamage()intgetDurability()intgetEnchantability()intgetMiningLevel()floatgetMiningSpeedMultiplier()IngredientgetRepairIngredient()static ToolMaterialsvalueOf(String name)Returns the enum constant of this type with the specified name.static ToolMaterials[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
WOOD
- Mappings:
Namespace Name Mixin selector official aLbph;a:Lbph;intermediary field_8922Lnet/minecraft/class_1834;field_8922:Lnet/minecraft/class_1834;named WOODLnet/minecraft/item/ToolMaterials;WOOD:Lnet/minecraft/item/ToolMaterials;
-
STONE
- Mappings:
Namespace Name Mixin selector official bLbph;b:Lbph;intermediary field_8927Lnet/minecraft/class_1834;field_8927:Lnet/minecraft/class_1834;named STONELnet/minecraft/item/ToolMaterials;STONE:Lnet/minecraft/item/ToolMaterials;
-
IRON
- Mappings:
Namespace Name Mixin selector official cLbph;c:Lbph;intermediary field_8923Lnet/minecraft/class_1834;field_8923:Lnet/minecraft/class_1834;named IRONLnet/minecraft/item/ToolMaterials;IRON:Lnet/minecraft/item/ToolMaterials;
-
DIAMOND
- Mappings:
Namespace Name Mixin selector official dLbph;d:Lbph;intermediary field_8930Lnet/minecraft/class_1834;field_8930:Lnet/minecraft/class_1834;named DIAMONDLnet/minecraft/item/ToolMaterials;DIAMOND:Lnet/minecraft/item/ToolMaterials;
-
GOLD
- Mappings:
Namespace Name Mixin selector official eLbph;e:Lbph;intermediary field_8929Lnet/minecraft/class_1834;field_8929:Lnet/minecraft/class_1834;named GOLDLnet/minecraft/item/ToolMaterials;GOLD:Lnet/minecraft/item/ToolMaterials;
-
NETHERITE
- Mappings:
Namespace Name Mixin selector official fLbph;f:Lbph;intermediary field_22033Lnet/minecraft/class_1834;field_22033:Lnet/minecraft/class_1834;named NETHERITELnet/minecraft/item/ToolMaterials;NETHERITE:Lnet/minecraft/item/ToolMaterials;
-
-
Field Details
-
miningLevel
private final int miningLevel- Mappings:
Namespace Name Mixin selector official gLbph;g:Iintermediary field_8925Lnet/minecraft/class_1834;field_8925:Inamed miningLevelLnet/minecraft/item/ToolMaterials;miningLevel:I
-
itemDurability
private final int itemDurability- Mappings:
Namespace Name Mixin selector official hLbph;h:Iintermediary field_8924Lnet/minecraft/class_1834;field_8924:Inamed itemDurabilityLnet/minecraft/item/ToolMaterials;itemDurability:I
-
miningSpeed
private final float miningSpeed- Mappings:
Namespace Name Mixin selector official iLbph;i:Fintermediary field_8932Lnet/minecraft/class_1834;field_8932:Fnamed miningSpeedLnet/minecraft/item/ToolMaterials;miningSpeed:F
-
attackDamage
private final float attackDamage- Mappings:
Namespace Name Mixin selector official jLbph;j:Fintermediary field_8931Lnet/minecraft/class_1834;field_8931:Fnamed attackDamageLnet/minecraft/item/ToolMaterials;attackDamage:F
-
enchantability
private final int enchantability- Mappings:
Namespace Name Mixin selector official kLbph;k:Iintermediary field_8933Lnet/minecraft/class_1834;field_8933:Inamed enchantabilityLnet/minecraft/item/ToolMaterials;enchantability:I
-
repairIngredient
- Mappings:
Namespace Name Mixin selector official lLbph;l:Laga;intermediary field_8928Lnet/minecraft/class_1834;field_8928:Lnet/minecraft/class_3528;named repairIngredientLnet/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>Lbph;<init>(Ljava/lang/String;IIIFFILjava/util/function/Supplier;)Vintermediary <init>Lnet/minecraft/class_1834;<init>(Ljava/lang/String;IIIFFILjava/util/function/Supplier;)Vnamed <init>Lnet/minecraft/item/ToolMaterials;<init>(Ljava/lang/String;IIIFFILjava/util/function/Supplier;)V
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getDurability
public int getDurability()- Specified by:
getDurabilityin interfaceToolMaterial- Mappings:
Namespace Name Mixin selector official aLbpf;a()Iintermediary method_8025Lnet/minecraft/class_1832;method_8025()Inamed getDurabilityLnet/minecraft/item/ToolMaterial;getDurability()I
-
getMiningSpeedMultiplier
public float getMiningSpeedMultiplier()- Specified by:
getMiningSpeedMultiplierin interfaceToolMaterial- Mappings:
Namespace Name Mixin selector official bLbpf;b()Fintermediary method_8027Lnet/minecraft/class_1832;method_8027()Fnamed getMiningSpeedMultiplierLnet/minecraft/item/ToolMaterial;getMiningSpeedMultiplier()F
-
getAttackDamage
public float getAttackDamage()- Specified by:
getAttackDamagein interfaceToolMaterial- Mappings:
Namespace Name Mixin selector official cLbpf;c()Fintermediary method_8028Lnet/minecraft/class_1832;method_8028()Fnamed getAttackDamageLnet/minecraft/item/ToolMaterial;getAttackDamage()F
-
getMiningLevel
public int getMiningLevel()- Specified by:
getMiningLevelin interfaceToolMaterial- Mappings:
Namespace Name Mixin selector official dLbpf;d()Iintermediary method_8024Lnet/minecraft/class_1832;method_8024()Inamed getMiningLevelLnet/minecraft/item/ToolMaterial;getMiningLevel()I
-
getEnchantability
public int getEnchantability()- Specified by:
getEnchantabilityin interfaceToolMaterial- Mappings:
Namespace Name Mixin selector official eLbpf;e()Iintermediary method_8026Lnet/minecraft/class_1832;method_8026()Inamed getEnchantabilityLnet/minecraft/item/ToolMaterial;getEnchantability()I
-
getRepairIngredient
- Specified by:
getRepairIngredientin interfaceToolMaterial- Mappings:
Namespace Name Mixin selector official fLbpf;f()Lbql;intermediary method_8023Lnet/minecraft/class_1832;method_8023()Lnet/minecraft/class_1856;named getRepairIngredientLnet/minecraft/item/ToolMaterial;getRepairIngredient()Lnet/minecraft/recipe/Ingredient;
-