Files
CC-Tweaked/projects/common-api
Jonathan Coates 1ad20eea05 Pass registries to details providers
In 634cd52b60 we found out that NBT
hashing requires access to the current registries. However, passing that
around would have required an API change, so we just probed the current
server globally.

On 1.21.10 we can break the API, so let's do this properly:
 - DetailRegistry/DetailProvider now take a HolderLookup.Provider as an
   argument. I did debate whether non-basic details should use a
   MinecraftServer for now, but that makes the API less uniform.

 - This means our generic peripherals need access to the current server.
   We also update the API to support registering
   MinecraftServer->GenericSource factories
2025-12-09 23:57:23 +00:00
..
2025-12-09 23:57:23 +00:00