Package net.minecraftforge.common
Class ForgeTier
java.lang.Object
net.minecraftforge.common.ForgeTier
- All Implemented Interfaces:
- Tier
Helper class to define a custom tier
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final floatprivate final intprivate final intprivate final @NotNull Supplier<Ingredient>private final floatprivate final int
- 
Constructor SummaryConstructorsConstructorDescriptionForgeTier(int level, int uses, float speed, float attackDamageBonus, int enchantmentValue, @NotNull TagKey<Block> tag, @NotNull Supplier<Ingredient> repairIngredient) 
- 
Method Summary
- 
Field Details- 
levelprivate final int level
- 
usesprivate final int uses
- 
speedprivate final float speed
- 
attackDamageBonusprivate final float attackDamageBonus
- 
enchantmentValueprivate final int enchantmentValue
- 
tag
- 
repairIngredient
 
- 
- 
Constructor Details- 
ForgeTierpublic ForgeTier(int level, int uses, float speed, float attackDamageBonus, int enchantmentValue, @NotNull @NotNull TagKey<Block> tag, @NotNull @NotNull Supplier<Ingredient> repairIngredient) 
 
- 
- 
Method Details- 
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
 
- 
getTag
- 
getRepairIngredient- Specified by:
- getRepairIngredientin interface- Tier
 
- 
toString
 
-