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
Modifier and TypeFieldDescriptionprivate final float
private final int
private final Supplier
<Ingredient> private final float
private final int
-
Constructor Summary
ConstructorDescriptionSimpleTier
(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, wait
Methods 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:
getAttackDamageBonus
in interfaceTier
-
getIncorrectBlocksForDrops
- Specified by:
getIncorrectBlocksForDrops
in interfaceTier
-
getEnchantmentValue
public int getEnchantmentValue()- Specified by:
getEnchantmentValue
in interfaceTier
-
getRepairIngredient
- Specified by:
getRepairIngredient
in interfaceTier
-
toString
-