public static class BlockEvent.CropGrowEvent extends BlockEvent
Modifier and Type | Class and Description |
---|---|
static class |
BlockEvent.CropGrowEvent.Post
Fired when "growing age" blocks (for example cacti, chorus plants, or crops
in vanilla) have successfully grown.
|
static class |
BlockEvent.CropGrowEvent.Pre
Fired when any "growing age" blocks (for example cacti, chorus plants, or crops
in vanilla) attempt to advance to the next growth age state during a random tick.
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.This event is not Cancelable . |
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 |
---|
CropGrowEvent(World world,
BlockPos pos,
IBlockState state) |
getPos, getState, getWorld
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public CropGrowEvent(World world, BlockPos pos, IBlockState state)