public class MCPlayerInteractEvent
extends java.lang.Object
implements crafttweaker.api.event.PlayerInteractEvent
| Constructor and Description |
|---|
MCPlayerInteractEvent(net.minecraftforge.event.entity.player.PlayerInteractEvent event) |
| Modifier and Type | Method and Description |
|---|---|
void |
damageItem(int amount) |
crafttweaker.api.block.IBlock |
getBlock() |
crafttweaker.api.block.IBlockState |
getBlockState() |
int |
getDimension() |
crafttweaker.api.world.IFacing |
getFace() |
java.lang.String |
getHand() |
crafttweaker.api.player.IPlayer |
getPlayer() |
crafttweaker.api.world.IBlockPos |
getPosition() |
crafttweaker.api.item.IItemStack |
getUsedItem() |
crafttweaker.api.world.IWorld |
getWorld() |
public MCPlayerInteractEvent(net.minecraftforge.event.entity.player.PlayerInteractEvent event)
public void damageItem(int amount)
damageItem in interface crafttweaker.api.event.PlayerInteractEventpublic crafttweaker.api.world.IWorld getWorld()
getWorld in interface crafttweaker.api.event.PlayerInteractEventpublic crafttweaker.api.block.IBlock getBlock()
getBlock in interface crafttweaker.api.event.PlayerInteractEventpublic crafttweaker.api.block.IBlockState getBlockState()
getBlockState in interface crafttweaker.api.event.PlayerInteractEventpublic int getDimension()
getDimension in interface crafttweaker.api.event.PlayerInteractEventpublic java.lang.String getHand()
getHand in interface crafttweaker.api.event.PlayerInteractEventpublic crafttweaker.api.item.IItemStack getUsedItem()
getUsedItem in interface crafttweaker.api.event.PlayerInteractEventpublic crafttweaker.api.world.IBlockPos getPosition()
getPosition in interface crafttweaker.api.event.IEventPositionablepublic crafttweaker.api.player.IPlayer getPlayer()
getPlayer in interface crafttweaker.api.event.IPlayerEventpublic crafttweaker.api.world.IFacing getFace()
getFace in interface crafttweaker.api.event.PlayerInteractEvent