public static class AnvilEvent.HammerDamage extends AnvilEvent
AnvilEvent subclass for calculating the damage to be dealt to the hammer upon incrementing the anvil item's stage.
Cancelling this event prevents any damage from being applied to the hammer
AnvilEvent.BeatAnvil, AnvilEvent.FinishedSmith, AnvilEvent.HammerDamage, AnvilEvent.MaterialChanged| Modifier and Type | Field and Description |
|---|---|
int |
damage
The damage to be dealt to the hammer when incrementing the anvil item's stage
|
net.minecraft.item.ItemStack |
hammer
The
ItemStack representing the hammer used on the anvil |
anvil, player| Constructor and Description |
|---|
HammerDamage(net.minecraft.entity.player.EntityPlayerMP player,
TileEntityAnvil anvil,
net.minecraft.item.ItemStack hammer,
int damage) |
public final net.minecraft.item.ItemStack hammer
ItemStack representing the hammer used on the anvilpublic int damage
public HammerDamage(net.minecraft.entity.player.EntityPlayerMP player,
TileEntityAnvil anvil,
net.minecraft.item.ItemStack hammer,
int damage)