This reverts commit 75788f63ee.
This solution is invalid as TEs are free to modify the world tileEntities
list, usually indirectly via chunkloading, from inside invalidate().
This happens in vanilla, in TileEntityChest#invalidate, where it calls
checkForAdjacentChests(), which has the potential to load neighboring
chunks and cause a CME.
A more sophisticated solution is needed.
* Add a FarmlandWaterCheckEvent to allow mods to override when Farmland is watered or not
* revert 1.12.2 json
* Move the farmland patch to a ticket based instead of a event based system
* Minor changes
* Faster isValid checks, faster validation/invalidation if the state did not change, expand test mod to include a test for the validation system
* remove isValid boolean flag, we can express it with the tick counter
* Fix test mod resource warnings
* Remove tick timeout, add a javadoc note to invalidate on chunk unload, cleaned up test mod
* Allow mods to provide custom handling to determine if a pos is valid or not
* Make SimpleTicket more simple, make register public so custom tickets can be registered
* Fixes for review
* Add missing license headers
* Use a weak hash set
* Split up the map into smaller chunk based maps
* Add missing license headers
* Make MultiTicketManager more universal for custom implementations, cleanup imports
* Adds an Event to allow providing a BufferedImage for the banner render generation (cached)
This allows mods to provide generated banner textures, since banners don't use an atlas.
Includes reference/test implementation.
* Missed some copyright; might as well absolut text match, I guess
* Remove unneeded patch change
* Fix event variable access convention
* Formatting fix
* Improve event handling registration
* Import cleanup
* Replace event approach with Supplier approach
* Better name for test mod (now that it's no longer an event); adds ENABLE flag
* Moves MC code into net.minecraftforge.client.MinecraftForgeClient.getImageLayer to simplify patch
* Generalize naming