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 Supplier<Ingredient> private final floatprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionSimpleTier(TagKey<Block> incorrectBlocksForDrops, int uses, float speed, float attackDamageBonus, int enchantmentValue, Supplier<Ingredient> repairIngredient) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.item.Tier
createToolProperties
-
Field Details
-
incorrectBlocksForDrops
-
uses
private final int uses -
speed
private final float speed -
attackDamageBonus
private final float attackDamageBonus -
enchantmentValue
private final int enchantmentValue -
repairIngredient
-
-
Constructor Details
-
SimpleTier
public SimpleTier(TagKey<Block> incorrectBlocksForDrops, int uses, float speed, float attackDamageBonus, int enchantmentValue, Supplier<Ingredient> repairIngredient)
-
-
Method Details
-
getUses
public int getUses() -
getSpeed
public float getSpeed() -
getAttackDamageBonus
public float getAttackDamageBonus()- Specified by:
getAttackDamageBonusin interfaceTier
-
getIncorrectBlocksForDrops
- Specified by:
getIncorrectBlocksForDropsin interfaceTier
-
getEnchantmentValue
public int getEnchantmentValue()- Specified by:
getEnchantmentValuein interfaceTier
-
getRepairIngredient
- Specified by:
getRepairIngredientin interfaceTier
-
toString
-