* Optimize registry sync packet
* Make sure that the id map is sorted by the raw id
Send the difference of the first raw id and the last raw id from the bulk before
* Add packet size log prints
* Use Boolean.getBoolean
Don't send sync packet if the player is the server host
* Use generic Map
* Multiple raw id bulk test
* Group object namespace first before grouping raw ids
* Revert "Add packet size log prints"
This reverts commit fcb8b71e
* RegistrySyncPacket -> RegistryPacketSerializer
Move RegistryPacketSerializer singleton to the interface
* Packet size log prints
* Sort raw id on each namespace group
* Use Identifier.DEFAULT_NAMESPACE
* Slice to multiple packet if necessary
* Make MAX_PAYLOAD_SIZE configurable
Make testmod registry bigger
Print buffer size in equality test
* Move static packet handler instance to RegistrySyncManager
Release combinedBuf before discarding it
Discard syncedRegistryMap after it's accessed
* Use PacketByteBufs to create buffers
* Try to detect if a registry is modded, if its not it will left alone and no syncing or saving will take place.
* Some more work on moddable registries
* Checkstyle
* Fix licences
* Cleanup registry attributes
* Rework again
* Some small tweaks
* Yet another refactor
* Some minor style fixes
* Finish checking registries
* Start on a test mod, and apply some fixes.
* Checkstyle fixes
* Tweak the logic behind previously modded registries
* Use EnumSet
* Update fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/mixin/registry/sync/MixinRegistry.java
Co-authored-by: liach <7806504+liach@users.noreply.github.com>
* Fix generics, add javadoc, add tests
* More changes
* Checkstyle fixes
* Minor fixes
* Remove hash stuff
* 20w21a - massive changes
* fix build
* Update fabric-registry-sync-v0/src/main/java/net/fabricmc/fabric/api/event/registry/FabricRegistryBuilder.java
Co-authored-by: Joseph Burton <burtonjae@hotmail.co.uk>
* Feedback and update mappings
* No longer apply mappings to vanilla registries, no longer save empty mapping data.
* Use Identifier in FabricRegistryBuilder over RegistryKey
Improve empty registry tag handling
* Reorder toTag empty checks
* Minor fixes
* Make FabricRegistryBuilder final
* Update registry attributes
* Fix compile issue
Co-authored-by: liach <7806504+liach@users.noreply.github.com>
Co-authored-by: Joseph Burton <burtonjae@hotmail.co.uk>
Co-authored-by: Player <player@player.to>