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 @NotNull Supplier
<Ingredient> private final float
private final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
int
@NotNull Ingredient
float
getSpeed()
getTag()
int
getUses()
toString()
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
-
uses
private final int uses -
speed
private final float speed -
attackDamageBonus
private final float attackDamageBonus -
enchantmentValue
private final int enchantmentValue -
tag
-
repairIngredient
-
incorrectBlocks
-
-
Constructor Details
-
ForgeTier
-
-
Method Details
-
getUses
public int getUses() -
getSpeed
public float getSpeed() -
getAttackDamageBonus
public float getAttackDamageBonus()- Specified by:
getAttackDamageBonus
in interfaceTier
-
getEnchantmentValue
public int getEnchantmentValue()- Specified by:
getEnchantmentValue
in interfaceTier
-
getTag
-
getIncorrectBlocksForDrops
- Specified by:
getIncorrectBlocksForDrops
in interfaceTier
-
getRepairIngredient
- Specified by:
getRepairIngredient
in interfaceTier
-
toString
-