public static class BlockEvent.CropGrowEvent.Pre extends BlockEvent.CropGrowEvent
Result#DEFAULT
will pass on to the vanilla growth mechanics.Result#ALLOW
will force the plant to advance a growth stage.Result#DENY
will prevent the plant from advancing a growth stage.Cancelable
.BlockEvent.CropGrowEvent.Post, BlockEvent.CropGrowEvent.Pre
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
Constructor and Description |
---|
Pre(World world,
BlockPos pos,
IBlockState state) |
getPos, getState, getWorld
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public Pre(World world, BlockPos pos, IBlockState state)