public class MCPlayerRightClickItemEvent extends MCPlayerInteractEvent implements crafttweaker.api.event.PlayerRightClickItemEvent
Constructor and Description |
---|
MCPlayerRightClickItemEvent(net.minecraftforge.event.entity.player.PlayerInteractEvent.RightClickItem event) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCancellationResult() |
boolean |
isCanceled() |
void |
setCanceled(boolean canceled) |
void |
setCancellationResult(java.lang.String value) |
damageItem, getBlock, getBlockState, getDimension, getHand, getPlayer, getPosition, getUsedItem, getWorld
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
damageItem, getBlock, getBlockState, getDimension, getHand, getUsedItem, getWorld
public MCPlayerRightClickItemEvent(net.minecraftforge.event.entity.player.PlayerInteractEvent.RightClickItem event)
public boolean isCanceled()
isCanceled
in interface crafttweaker.api.event.IEventCancelable
public void setCanceled(boolean canceled)
setCanceled
in interface crafttweaker.api.event.IEventCancelable
public java.lang.String getCancellationResult()
getCancellationResult
in interface crafttweaker.api.event.IHasCancellationResult
public void setCancellationResult(java.lang.String value)
setCancellationResult
in interface crafttweaker.api.event.IHasCancellationResult