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 Summary
Modifier and TypeFieldDescriptionprivate float
private int
private int
private Supplier<Ingredient>
private float
private int
-
Constructor Summary
ConstructorDescriptionForgeTier(int level, int uses, float speed, float attackDamageBonus, int enchantmentValue, Tag<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
-
ForgeTier
public ForgeTier(int level, int uses, float speed, float attackDamageBonus, int enchantmentValue, @Nonnull Tag<Block> tag, @Nonnull Supplier<Ingredient> repairIngredient)
-
-
Method Details
-
getUses
public int getUses() -
getSpeed
public float getSpeed() -
getAttackDamageBonus
public float getAttackDamageBonus()- Specified by:
getAttackDamageBonus
in interfaceTier
-
getLevel
public int getLevel() -
getEnchantmentValue
public int getEnchantmentValue()- Specified by:
getEnchantmentValue
in interfaceTier
-
getTag
-
getRepairIngredient
- Specified by:
getRepairIngredient
in interfaceTier
-
toString
-