Package net.minecraft.item
Enum Class ItemTier
- All Implemented Interfaces:
- Serializable,- Comparable<ItemTier>,- Constable,- IItemTier
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final floatprivate final intprivate final intprivate final LazyValue<Ingredient>private final floatprivate final int
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprivateItemTier(int p_i48458_3_, int p_i48458_4_, float p_i48458_5_, float p_i48458_6_, int p_i48458_7_, Supplier<Ingredient> p_i48458_8_) 
- 
Method Summary
- 
Enum Constant Details- 
WOOD
- 
STONE
- 
IRON
- 
DIAMOND
- 
GOLD
- 
NETHERITE
 
- 
- 
Field Details- 
levelprivate final int level
- 
usesprivate final int uses
- 
speedprivate final float speed
- 
damageprivate final float damage
- 
enchantmentValueprivate final int enchantmentValue
- 
repairIngredient
 
- 
- 
Constructor Details- 
ItemTierprivate ItemTier(int p_i48458_3_, int p_i48458_4_, float p_i48458_5_, float p_i48458_6_, int p_i48458_7_, Supplier<Ingredient> p_i48458_8_) 
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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
 
- 
getUsespublic int getUses()
- 
getSpeedpublic float getSpeed()
- 
getAttackDamageBonuspublic float getAttackDamageBonus()- Specified by:
- getAttackDamageBonusin interface- IItemTier
 
- 
getLevelpublic int getLevel()
- 
getEnchantmentValuepublic int getEnchantmentValue()- Specified by:
- getEnchantmentValuein interface- IItemTier
 
- 
getRepairIngredient- Specified by:
- getRepairIngredientin interface- IItemTier
 
 
-