Class BlockEvent.CropGrowEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.level.BlockEvent
net.neoforged.neoforge.event.level.BlockEvent.CropGrowEvent
- Direct Known Subclasses:
BlockEvent.CropGrowEvent.Post
,BlockEvent.CropGrowEvent.Pre
- Enclosing class:
BlockEvent
Fired when a crop block grows. See subevents.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Fired when "growing age" blocks (for example cacti, chorus plants, or crops in vanilla) have successfully grown.static class
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.
Event.Result.DEFAULT
will pass on to the vanilla growth mechanics.
Event.Result.ALLOW
will force the plant to advance a growth stage.
Event.Result.DENY
will prevent the plant from advancing a growth stage.
This event is notICancellableEvent
.
Nested classes/interfaces inherited from class net.neoforged.neoforge.event.level.BlockEvent
BlockEvent.BlockToolModificationEvent, BlockEvent.BreakEvent, BlockEvent.CreateFluidSourceEvent, BlockEvent.CropGrowEvent, BlockEvent.EntityMultiPlaceEvent, BlockEvent.EntityPlaceEvent, BlockEvent.FarmlandTrampleEvent, BlockEvent.FluidPlaceBlockEvent, BlockEvent.NeighborNotifyEvent, BlockEvent.PortalSpawnEvent
Nested classes/interfaces inherited from class net.neoforged.bus.api.Event
net.neoforged.bus.api.Event.HasResult, net.neoforged.bus.api.Event.Result
-
Constructor Summary
-
Method Summary
Methods inherited from class net.neoforged.neoforge.event.level.BlockEvent
getLevel, getPos, getState
Methods inherited from class net.neoforged.bus.api.Event
getResult, hasResult, setResult
-
Constructor Details
-
CropGrowEvent
-