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 SummaryFieldsModifier and TypeFieldDescriptionprivate final floatprivate final intprivate final @NotNull Supplier<Ingredient> private final floatprivate final int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfloatint@NotNull IngredientfloatgetSpeed()getTag()intgetUses()toString()Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.item.TiercreateToolProperties
- 
Field Details- 
usesprivate final int uses
- 
speedprivate final float speed
- 
attackDamageBonusprivate final float attackDamageBonus
- 
enchantmentValueprivate final int enchantmentValue
- 
tag
- 
repairIngredient
- 
incorrectBlocks
 
- 
- 
Constructor Details- 
ForgeTier
 
- 
- 
Method Details- 
getUsespublic int getUses()
- 
getSpeedpublic float getSpeed()
- 
getAttackDamageBonuspublic float getAttackDamageBonus()- Specified by:
- getAttackDamageBonusin interface- Tier
 
- 
getEnchantmentValuepublic int getEnchantmentValue()- Specified by:
- getEnchantmentValuein interface- Tier
 
- 
getTag
- 
getIncorrectBlocksForDrops- Specified by:
- getIncorrectBlocksForDropsin interface- Tier
 
- 
getRepairIngredient- Specified by:
- getRepairIngredientin interface- Tier
 
- 
toString
 
-