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 SummaryFieldsModifier and TypeFieldDescriptionprivate final floatprivate final intprivate final Supplier<Ingredient> private final floatprivate final int
- 
Constructor SummaryConstructorsConstructorDescriptionSimpleTier(TagKey<Block> incorrectBlocksForDrops, int uses, float speed, float attackDamageBonus, int enchantmentValue, Supplier<Ingredient> repairIngredient) 
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.item.TiercreateToolProperties
- 
Field Details- 
incorrectBlocksForDrops
- 
usesprivate final int uses
- 
speedprivate final float speed
- 
attackDamageBonusprivate final float attackDamageBonus
- 
enchantmentValueprivate final int enchantmentValue
- 
repairIngredient
 
- 
- 
Constructor Details- 
SimpleTierpublic SimpleTier(TagKey<Block> incorrectBlocksForDrops, int uses, float speed, float attackDamageBonus, int enchantmentValue, Supplier<Ingredient> repairIngredient) 
 
- 
- 
Method Details- 
getUsespublic int getUses()
- 
getSpeedpublic float getSpeed()
- 
getAttackDamageBonuspublic float getAttackDamageBonus()- Specified by:
- getAttackDamageBonusin interface- Tier
 
- 
getIncorrectBlocksForDrops- Specified by:
- getIncorrectBlocksForDropsin interface- Tier
 
- 
getEnchantmentValuepublic int getEnchantmentValue()- Specified by:
- getEnchantmentValuein interface- Tier
 
- 
getRepairIngredient- Specified by:
- getRepairIngredientin interface- Tier
 
- 
toString
 
-