Fire Forge events for crops
CodesCubesAndCrashes opened this issue ยท 3 comments
To do
- Look up event spawning references and practices.
- Find which events are relevant.
- ...
Potential Events
BlockEvent.CropGrowEvent
BlockEvent.HarvestCropsEvent
CropPlantedEvent
(AgriCraft's own)EntityEvent.LivingEvent.PlayerEvent.BonemealEvent
(Not our responsibility, I suspect.)HarvestCheck
inPlayerEvent
?
Links
- https://github.com/AgriCraft/AgriCraft/blob/master/src/main/java/com/infinityraider/agricraft/tiles/TileEntityCrop.java#L105-L109
- https://github.com/TheAtomicOption/harvestcraft/blob/5fcd69fdea95b2b9336166cb6ed3cdcd6b4fcd2d/src/main/java/com/pam/harvestcraft/blocks/growables/BlockPamCrop.java#L152-L154
I suggest extending the CropGrowEvent and HarvestCropsEvent with two new events in the API, to also pass the ICrop object, and fire these instead.