Class CropGrowEvent.Pre
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.event.level.BlockEvent
net.neoforged.neoforge.event.level.block.CropGrowEvent
net.neoforged.neoforge.event.level.block.CropGrowEvent.Pre
- Enclosing class:
CropGrowEvent
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.
This event is only fired on the logical server.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.event.level.block.CropGrowEvent
CropGrowEvent.Post, CropGrowEvent.Pre
Nested classes/interfaces inherited from class net.neoforged.neoforge.event.level.BlockEvent
BlockEvent.BlockToolModificationEvent, BlockEvent.BreakEvent, BlockEvent.EntityMultiPlaceEvent, BlockEvent.EntityPlaceEvent, BlockEvent.FarmlandTrampleEvent, BlockEvent.FluidPlaceBlockEvent, BlockEvent.NeighborNotifyEvent, BlockEvent.PortalSpawnEvent
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the result of this event, which controls if the click will be treated as handled.void
setResult
(CropGrowEvent.Pre.Result result) Changes the result of this event.Methods inherited from class net.neoforged.neoforge.event.level.BlockEvent
getLevel, getPos, getState
-
Field Details
-
result
-
-
Constructor Details
-
Pre
-
-
Method Details
-
setResult
Changes the result of this event. -
getResult
Returns the result of this event, which controls if the click will be treated as handled.- Returns:
- the result of this event, which controls if the click will be treated as handled
-