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
FieldsModifier and TypeFieldDescriptionprivate final floatprivate final intprivate final @NotNull Supplier<Ingredient> private final floatprivate final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatint@NotNull IngredientfloatgetSpeed()getTag()intgetUses()toString()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
-
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:
getAttackDamageBonusin interfaceTier
-
getEnchantmentValue
public int getEnchantmentValue()- Specified by:
getEnchantmentValuein interfaceTier
-
getTag
-
getIncorrectBlocksForDrops
- Specified by:
getIncorrectBlocksForDropsin interfaceTier
-
getRepairIngredient
- Specified by:
getRepairIngredientin interfaceTier
-
toString
-