PlayerDestroyItemEvent is fired when a player destroys an item.
This event is fired whenever a player destroys an item in
PlayerControllerMP.onPlayerDestroyBlock(BlockPos)
,
PlayerControllerMP.processRightClick(EntityPlayer, World, EnumHand)
,
PlayerControllerMP.processRightClickBlock(EntityPlayerSP, WorldClient, BlockPos, EnumFacing, Vec3d, EnumHand)
,
EntityPlayer.attackTargetEntityWithCurrentItem(Entity)
,
EntityPlayer.damageShield(float)
,
EntityPlayer.interactOn(Entity, EnumHand)
,
ForgeHooks.getContainerItem(ItemStack)
,
PlayerInteractionManager.processRightClick(EntityPlayer, World, ItemStack, EnumHand)
,
PlayerInteractionManager.processRightClickBlock(EntityPlayer, World, ItemStack, EnumHand, BlockPos, EnumFacing, float, float, float)
and
PlayerInteractionManager.tryHarvestBlock(BlockPos)
.
original
contains the original ItemStack before the item was destroyed.
(@link #hand) contains the hand that the current item was held in.
This event is not
Cancelable
.
This event does not have a result.
HasResult
This event is fired from
ForgeEventFactory.onPlayerDestroyItem(EntityPlayer, ItemStack, EnumHand)
.
This event is fired on the
MinecraftForge.EVENT_BUS
.