public class MCPlayerRightClickBlockEvent extends MCPlayerInteractEvent implements crafttweaker.api.event.PlayerRightClickBlockEvent
Constructor and Description |
---|
MCPlayerRightClickBlockEvent(net.minecraftforge.event.entity.player.PlayerInteractEvent.RightClickBlock event) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCancellationResult() |
crafttweaker.api.world.IVector3d |
getHitVector() |
java.lang.String |
getUseBlock() |
java.lang.String |
getUseItem() |
boolean |
isCanceled() |
void |
setCanceled(boolean canceled) |
void |
setCancellationResult(java.lang.String value) |
void |
setUseBlock(java.lang.String useBlock) |
void |
setUseItem(java.lang.String useItem) |
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 MCPlayerRightClickBlockEvent(net.minecraftforge.event.entity.player.PlayerInteractEvent.RightClickBlock event)
public crafttweaker.api.world.IVector3d getHitVector()
getHitVector
in interface crafttweaker.api.event.PlayerRightClickBlockEvent
public java.lang.String getUseBlock()
getUseBlock
in interface crafttweaker.api.event.PlayerRightClickBlockEvent
public void setUseBlock(java.lang.String useBlock)
setUseBlock
in interface crafttweaker.api.event.PlayerRightClickBlockEvent
public java.lang.String getUseItem()
getUseItem
in interface crafttweaker.api.event.PlayerRightClickBlockEvent
public void setUseItem(java.lang.String useItem)
setUseItem
in interface crafttweaker.api.event.PlayerRightClickBlockEvent
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
public boolean isCanceled()
isCanceled
in interface crafttweaker.api.event.IEventCancelable
public void setCanceled(boolean canceled)
setCanceled
in interface crafttweaker.api.event.IEventCancelable