Package net.neoforged.neoforge.common
Class SimpleTier
java.lang.Object
net.neoforged.neoforge.common.SimpleTier
- All Implemented Interfaces:
 Tier
Helper class to define a custom tier
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatprivate final intprivate final intprivate final Supplier<Ingredient>private final floatprivate final int - 
Constructor Summary
ConstructorsConstructorDescriptionSimpleTier(int level, int uses, float speed, float attackDamageBonus, int enchantmentValue, TagKey<Block> tag, Supplier<Ingredient> repairIngredient)  - 
Method Summary
 
- 
Field Details
- 
level
private final int level - 
uses
private final int uses - 
speed
private final float speed - 
attackDamageBonus
private final float attackDamageBonus - 
enchantmentValue
private final int enchantmentValue - 
tag
 - 
repairIngredient
 
 - 
 - 
Constructor Details
- 
SimpleTier
public SimpleTier(int level, int uses, float speed, float attackDamageBonus, int enchantmentValue, TagKey<Block> tag, Supplier<Ingredient> repairIngredient)  
 - 
 - 
Method Details
- 
getUses
public int getUses() - 
getSpeed
public float getSpeed() - 
getAttackDamageBonus
public float getAttackDamageBonus()- Specified by:
 getAttackDamageBonusin interfaceTier
 - 
getLevel
public int getLevel() - 
getEnchantmentValue
public int getEnchantmentValue()- Specified by:
 getEnchantmentValuein interfaceTier
 - 
getTag
 - 
getRepairIngredient
- Specified by:
 getRepairIngredientin interfaceTier
 - 
toString
 
 -