Package net.minecraft.item
Enum Class ToolMaterial
- All Implemented Interfaces:
Serializable,Comparable<ToolMaterial>,Constable
- Mappings:
Namespace Name intermediary net/minecraft/class_428glue class_47server bbclient bunamed net/minecraft/item/ToolMaterial
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final intprivate final intprivate final float -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateToolMaterial(int miningLevel, int itemDurability, float miningSpeed, int attackDamage) -
Method Summary
Modifier and TypeMethodDescriptionintintintfloatstatic ToolMaterialReturns the enum constant of this class with the specified name.static ToolMaterial[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WOOD
- Mappings:
Namespace Name Mixin selector intermediary field_1688Lnet/minecraft/class_428;field_1688:Lnet/minecraft/class_428;glue field_77Lclass_47;field_77:Lclass_47;server aLbb;a:Lbb;client aLbu;a:Lbu;named WOODLnet/minecraft/item/ToolMaterial;WOOD:Lnet/minecraft/item/ToolMaterial;
-
STONE
- Mappings:
Namespace Name Mixin selector intermediary field_1689Lnet/minecraft/class_428;field_1689:Lnet/minecraft/class_428;glue field_78Lclass_47;field_78:Lclass_47;server bLbb;b:Lbb;client bLbu;b:Lbu;named STONELnet/minecraft/item/ToolMaterial;STONE:Lnet/minecraft/item/ToolMaterial;
-
IRON
- Mappings:
Namespace Name Mixin selector intermediary field_1690Lnet/minecraft/class_428;field_1690:Lnet/minecraft/class_428;glue field_79Lclass_47;field_79:Lclass_47;server cLbb;c:Lbb;client cLbu;c:Lbu;named IRONLnet/minecraft/item/ToolMaterial;IRON:Lnet/minecraft/item/ToolMaterial;
-
DIAMOND
- Mappings:
Namespace Name Mixin selector intermediary field_1691Lnet/minecraft/class_428;field_1691:Lnet/minecraft/class_428;glue field_80Lclass_47;field_80:Lclass_47;server dLbb;d:Lbb;client dLbu;d:Lbu;named DIAMONDLnet/minecraft/item/ToolMaterial;DIAMOND:Lnet/minecraft/item/ToolMaterial;
-
GOLD
- Mappings:
Namespace Name Mixin selector intermediary field_1692Lnet/minecraft/class_428;field_1692:Lnet/minecraft/class_428;glue field_81Lclass_47;field_81:Lclass_47;server eLbb;e:Lbb;client eLbu;e:Lbu;named GOLDLnet/minecraft/item/ToolMaterial;GOLD:Lnet/minecraft/item/ToolMaterial;
-
-
Field Details
-
miningLevel
private final int miningLevel- Mappings:
Namespace Name Mixin selector intermediary field_1693Lnet/minecraft/class_428;field_1693:Iglue field_82Lclass_47;field_82:Iserver fLbb;f:Iclient fLbu;f:Inamed miningLevelLnet/minecraft/item/ToolMaterial;miningLevel:I
-
itemDurability
private final int itemDurability- Mappings:
Namespace Name Mixin selector intermediary field_1694Lnet/minecraft/class_428;field_1694:Iglue field_83Lclass_47;field_83:Iserver gLbb;g:Iclient gLbu;g:Inamed itemDurabilityLnet/minecraft/item/ToolMaterial;itemDurability:I
-
miningSpeed
private final float miningSpeed- Mappings:
Namespace Name Mixin selector intermediary field_1695Lnet/minecraft/class_428;field_1695:Fglue field_84Lclass_47;field_84:Fserver hLbb;h:Fclient hLbu;h:Fnamed miningSpeedLnet/minecraft/item/ToolMaterial;miningSpeed:F
-
attackDamage
private final int attackDamage- Mappings:
Namespace Name Mixin selector intermediary field_1696Lnet/minecraft/class_428;field_1696:Iglue field_85Lclass_47;field_85:Iserver iLbb;i:Iclient iLbu;i:Inamed attackDamageLnet/minecraft/item/ToolMaterial;attackDamage:I
-
-
Constructor Details
-
ToolMaterial
private ToolMaterial(int miningLevel, int itemDurability, float miningSpeed, int attackDamage) - Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_428;<init>(Ljava/lang/String;IIIFI)Vglue <init>Lclass_47;<init>(Ljava/lang/String;IIIFI)Vserver <init>Lbb;<init>(Ljava/lang/String;IIIFI)Vclient <init>Lbu;<init>(Ljava/lang/String;IIIFI)Vnamed <init>Lnet/minecraft/item/ToolMaterial;<init>(Ljava/lang/String;IIIFI)V
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getDurability
public int getDurability()- Mappings:
Namespace Name Mixin selector intermediary method_1417Lnet/minecraft/class_428;method_1417()Iglue method_142Lclass_47;method_142()Iserver aLbb;a()Iclient aLbu;a()Inamed getDurabilityLnet/minecraft/item/ToolMaterial;getDurability()I
-
getMiningSpeedMultiplier
public float getMiningSpeedMultiplier()- Mappings:
Namespace Name Mixin selector intermediary method_1418Lnet/minecraft/class_428;method_1418()Fglue method_143Lclass_47;method_143()Fserver bLbb;b()Fclient bLbu;b()Fnamed getMiningSpeedMultiplierLnet/minecraft/item/ToolMaterial;getMiningSpeedMultiplier()F
-
getAttackDamage
public int getAttackDamage()- Mappings:
Namespace Name Mixin selector intermediary method_1419Lnet/minecraft/class_428;method_1419()Iglue method_144Lclass_47;method_144()Iserver cLbb;c()Iclient cLbu;c()Inamed getAttackDamageLnet/minecraft/item/ToolMaterial;getAttackDamage()I
-
getMiningLevel
public int getMiningLevel()- Mappings:
Namespace Name Mixin selector intermediary method_1420Lnet/minecraft/class_428;method_1420()Iglue method_145Lclass_47;method_145()Iserver dLbb;d()Iclient dLbu;d()Inamed getMiningLevelLnet/minecraft/item/ToolMaterial;getMiningLevel()I
-