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.NeighborNotifyEvent, BlockEvent.PortalSpawnEvent
Constructor and Description |
---|
CropGrowEvent(World world,
BlockPos pos,
BlockState state) |
getPos, getState, getWorld
public CropGrowEvent(World world, BlockPos pos, BlockState state)