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 final float
private final int
private final int
private final Supplier<Ingredient>
private final float
private final int
-
Constructor Summary
ConstructorDescriptionForgeTier
(int level, int uses, float speed, float attackDamageBonus, int enchantmentValue, TagKey<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 TagKey<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
-