Package net.minecraft.world.item
Enum Class Tiers
- All Implemented Interfaces:
- Serializable,- Comparable<Tiers>,- Constable,- Tier
- 
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 LazyLoadedValue<Ingredient>private final floatprivate final int
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprivateTiers(int p_43332_, int p_43333_, float p_43334_, float p_43335_, int p_43336_, Supplier<Ingredient> p_43337_) 
- 
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- 
Tiersprivate Tiers(int p_43332_, int p_43333_, float p_43334_, float p_43335_, int p_43336_, Supplier<Ingredient> p_43337_) 
 
- 
- 
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- Tier
 
- 
getLevelpublic int getLevel()
- 
getEnchantmentValuepublic int getEnchantmentValue()- Specified by:
- getEnchantmentValuein interface- Tier
 
- 
getRepairIngredient- Specified by:
- getRepairIngredientin interface- Tier
 
- 
getTag
 
-