Package net.minecraftforge.event.world
Class BlockEvent.CropGrowEvent
- java.lang.Object
-
- net.minecraftforge.eventbus.api.Event
-
- net.minecraftforge.event.world.BlockEvent
-
- net.minecraftforge.event.world.BlockEvent.CropGrowEvent
-
- Direct Known Subclasses:
BlockEvent.CropGrowEvent.Post,BlockEvent.CropGrowEvent.Pre
- Enclosing class:
- BlockEvent
public static class BlockEvent.CropGrowEvent extends BlockEvent
Fired when a crop block grows. See subevents.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBlockEvent.CropGrowEvent.PostFired when "growing age" blocks (for example cacti, chorus plants, or crops in vanilla) have successfully grown.static classBlockEvent.CropGrowEvent.PreFired 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.
Event.Result.DEFAULTwill pass on to the vanilla growth mechanics.
Event.Result.ALLOWwill force the plant to advance a growth stage.
Event.Result.DENYwill prevent the plant from advancing a growth stage.
This event is notCancelable.
-
Nested classes/interfaces inherited from class net.minecraftforge.event.world.BlockEvent
BlockEvent.BlockToolInteractEvent, BlockEvent.BreakEvent, BlockEvent.CreateFluidSourceEvent, BlockEvent.CropGrowEvent, BlockEvent.EntityMultiPlaceEvent, BlockEvent.EntityPlaceEvent, BlockEvent.FarmlandTrampleEvent, BlockEvent.FluidPlaceBlockEvent, BlockEvent.NeighborNotifyEvent, BlockEvent.PortalSpawnEvent
-
-
Constructor Summary
Constructors Constructor Description CropGrowEvent(World world, BlockPos pos, BlockState state)
-
Method Summary
-
Methods inherited from class net.minecraftforge.event.world.BlockEvent
getPos, getState, getWorld
-
-
-
-
Constructor Detail
-
CropGrowEvent
public CropGrowEvent(World world, BlockPos pos, BlockState state)
-
-