public static class AnvilEvent.BeatAnvil extends AnvilEvent
AnvilEvent
subclass fired when an anvil is beaten with a hammer.
Cancelling this event will prevent any progress on the item on the anvil
AnvilEvent.BeatAnvil, AnvilEvent.FinishedSmith, AnvilEvent.HammerDamage, AnvilEvent.MaterialChanged
anvil, player
Constructor and Description |
---|
BeatAnvil(net.minecraft.entity.player.EntityPlayerMP player,
TileEntityAnvil anvil,
net.minecraft.item.ItemStack itemstack,
int neededHits,
int force) |
Modifier and Type | Method and Description |
---|---|
int |
getForce()
Gets the force of the hammer.
|
net.minecraft.item.ItemStack |
getItem() |
int |
getNeededHits()
Gets the needed hits of a hammer to progress to the next stage
|
void |
setForce(int force)
Sets the force of the hammer.
|
void |
setNeededHits(int neededHits)
Sets the needed hits of a hammer to progress to the next stage.
|
public BeatAnvil(net.minecraft.entity.player.EntityPlayerMP player, TileEntityAnvil anvil, net.minecraft.item.ItemStack itemstack, int neededHits, int force)
public net.minecraft.item.ItemStack getItem()
public int getNeededHits()
public void setNeededHits(int neededHits)
public int getForce()
public void setForce(int force)