public interface IToolMaterial
extends net.minecraft.item.IItemTier
IItemTier interface for tool materials.| Modifier and Type | Interface and Description |
|---|---|
static class |
IToolMaterial.Tools
Just a little helper enumeration with all vanilla tools.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getAdditionalDamage(IToolMaterial.Tools tools)
Returns the additional damage that is added to the
IItemTier.getAttackDamage() per given tool. |
float |
getAttackSpeed(IToolMaterial.Tools tools)
Returns the attack speed per given tool.
|
float getAdditionalDamage(IToolMaterial.Tools tools)
IItemTier.getAttackDamage() per given tool. AxeItem and
ShovelItem can accept float values so this method returns floats. PickaxeItem and SwordItem
cannot accept floats so they will be casted to integers.tools - The toolfloat getAttackSpeed(IToolMaterial.Tools tools)
tools - The tool