public static class BlockEvent.PlaceEvent extends BlockEvent
BlockEvent.BreakEvent, BlockEvent.CreateFluidSourceEvent, BlockEvent.CropGrowEvent, BlockEvent.HarvestDropsEvent, BlockEvent.MultiPlaceEvent, BlockEvent.NeighborNotifyEvent, BlockEvent.PlaceEvent
Event.HasResult, Event.Result
Constructor and Description |
---|
PlaceEvent(BlockSnapshot blockSnapshot,
IBlockState placedAgainst,
EntityPlayer player,
EnumHand hand) |
Modifier and Type | Method and Description |
---|---|
BlockSnapshot |
getBlockSnapshot() |
EnumHand |
getHand() |
ItemStack |
getItemInHand()
Deprecated.
|
IBlockState |
getPlacedAgainst() |
IBlockState |
getPlacedBlock() |
EntityPlayer |
getPlayer() |
getPos, getState, getWorld
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public PlaceEvent(@Nonnull BlockSnapshot blockSnapshot, @Nonnull IBlockState placedAgainst, @Nonnull EntityPlayer player, @Nonnull EnumHand hand)
public EntityPlayer getPlayer()
@Nonnull @Deprecated public ItemStack getItemInHand()
public BlockSnapshot getBlockSnapshot()
public IBlockState getPlacedBlock()
public IBlockState getPlacedAgainst()
public EnumHand getHand()