public class BonemealEvent extends PlayerEvent
PlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.ItemCraftedEvent, PlayerEvent.ItemPickupEvent, PlayerEvent.ItemSmeltedEvent, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.PlayerChangedDimensionEvent, PlayerEvent.PlayerLoggedInEvent, PlayerEvent.PlayerLoggedOutEvent, PlayerEvent.PlayerRespawnEvent, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTracking, PlayerEvent.Visibility
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeight
Modifier and Type | Field and Description |
---|---|
private BlockState |
block |
private BlockPos |
pos |
private ItemStack |
stack |
private World |
world |
Constructor and Description |
---|
BonemealEvent(PlayerEntity player,
World world,
BlockPos pos,
BlockState block,
ItemStack stack) |
Modifier and Type | Method and Description |
---|---|
BlockState |
getBlock() |
BlockPos |
getPos() |
ItemStack |
getStack() |
World |
getWorld() |
getPlayer
getEntityLiving
getEntity
private final World world
private final BlockPos pos
private final BlockState block
private final ItemStack stack
public BonemealEvent(@Nonnull PlayerEntity player, @Nonnull World world, @Nonnull BlockPos pos, @Nonnull BlockState block, @Nonnull ItemStack stack)
public World getWorld()
public BlockPos getPos()
public BlockState getBlock()
@Nonnull public ItemStack getStack()