public class BonemealEvent extends PlayerEvent
PlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTracking, PlayerEvent.Visibility
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private IBlockState |
block |
private EnumHand |
hand |
private BlockPos |
pos |
private ItemStack |
stack |
private World |
world |
Constructor and Description |
---|
BonemealEvent(EntityPlayer player,
World world,
BlockPos pos,
IBlockState block,
EnumHand hand,
ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
IBlockState |
getBlock() |
EnumHand |
getHand() |
BlockPos |
getPos() |
ItemStack |
getStack() |
World |
getWorld() |
getEntityPlayer
getEntityLiving
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private final World world
private final BlockPos pos
private final IBlockState block
private final EnumHand hand
private final ItemStack stack
public BonemealEvent(@Nonnull EntityPlayer player, @Nonnull World world, @Nonnull BlockPos pos, @Nonnull IBlockState block, @Nullable EnumHand hand, @Nonnull ItemStack stack)
public World getWorld()
public BlockPos getPos()
public IBlockState getBlock()
@Nullable public EnumHand getHand()
@Nonnull public ItemStack getStack()