* Structure Pool Callback
* Update build.gradle
* Update fabric-structure-api-v1/src/main/java/net/fabricmc/fabric/api/structure/v1/FabricStructurePool.java
Co-authored-by: liach <7806504+liach@users.noreply.github.com>
* Update fabric-structure-api-v1/src/main/java/net/fabricmc/fabric/api/structure/v1/FabricStructurePool.java
Co-authored-by: liach <7806504+liach@users.noreply.github.com>
* Fix certain concerns
* Expose identifier for easier access
* Final test mod thing
* fix access widener
* Fix a few things
* Fix a few things
* Fix license
* haha lets see if this works
* checkstyle was working after I did checkstyleMain so u bettar work
* i take too much time to do checkstyle fixes
* checkstyle fix testmod ugh amirite
* Fix a few concerns brought up <3
* Oops, forgot to add a mutanle there
* Let's test this one more time?
* Remove Access Widener woop woop
* rename to poolAccessor
* Simplify the pool modification a bit
Co-authored-by: liach <7806504+liach@users.noreply.github.com>
(cherry picked from commit 48a9ad892d)
Structures are no longer linked to Biomes via an instance field in the Biome class. Instead they are linked by registry keys. This means that standard biome spawning rules also apply to superflat worlds, instead of the hardcoded list of structures linked with superflat worlds by default. Changes the FabricStructureBuilder to allow adding structures to this default list.
* Fix structure config not applying in every case
* Make tempmap immutable
* delete unfinished sentence
oop
* Some more cleanup
This was done at the request of Technician
* Update fabric-structure-api-v1/src/main/resources/fabric.mod.json
Co-authored-by: liach <7806504+liach@users.noreply.github.com>
Co-authored-by: liach <7806504+liach@users.noreply.github.com>
* Add custom value denoting module lifecycles.
* Make the module validation work.
My hand has been forced - we must use buildSrc since JsonSlurper is not available in main buildscript.
* Apply task to each project and dont cross projects
* A horrible hack
* Wait what
* It works now.
* Not needed
* Drop unneeded maven repo, cache map lookup
(cherry picked from commit daa38b3d82)
* Add fix for handling removal of old structures.
This fix is required or else worlds where a mod is removed WILL NOT SAVE.
* Only mark for saving if the chunk has a null key
* Add label for issue being fixed
* Actually fix the redirect lol
* Licenses...
* Use ThreadLocal boolean instead of nullable unit
* Checkstyle is picky
* remove unnecessary `containsKey`