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