Class CropGrowEvent.Post
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.Post
- Enclosing class:
CropGrowEvent
Fired when "growing age" blocks (for example cacti, chorus plants, or crops
in vanilla) have successfully grown. The block's original state is available,
in addition to its new state.
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 original state of the crop before growing.getState()
Returns the new state of the crop after growing.Methods inherited from class net.neoforged.neoforge.event.level.BlockEvent
getLevel, getPos
-
Field Details
-
originalState
-
-
Constructor Details
-
Post
-
-
Method Details
-
getOriginalState
Returns the original state of the crop before growing.- Returns:
- the original state of the crop before growing
-
getState
Returns the new state of the crop after growing.- Overrides:
getState
in classBlockEvent
- Returns:
- the new state of the crop after growing
-