fabric/fabric-data-attachment-api-v1
forgetmenot13579 d9873d8b91 AttachmentType Registration Enhancements (#4109)
* - Add new method AttachmentRegistry#create that allows configuration of the registered attachment type with a builder.
- Migrate existing creation methods to use the new one under the hood for consistency.
- Moves all null checking from AttachmentRegistry to AttachmentRegistryImpl.BuilderImpl (most of them happened there as well already and were thus redundant).

* - Adds the ability to initialize an AttachmentType with only a path, substituting the mod ID of the registrant via an entrypoint.

* - Add registration safety checks

* - Add missing copyright header

* - Remove lazy entrypoint initialization of attachment types.

* - Import fixes

* - Update javadoc.

* - Use expression lambdas.

* - Fix style checks

* - More style fixes

* - Fix line endings

* - Move WheelInfo and initialization to test package
- Deprecate AttachmentRegistry#builder
- Update existing tests to use #create rather than #builder

(cherry picked from commit e49211d8c6)
2024-10-26 15:53:46 +01:00
..
src AttachmentType Registration Enhancements (#4109) 2024-10-26 15:53:46 +01:00
build.gradle Extend Data Attachment API to ProtoChunk (#3548) 2024-02-09 14:06:46 +00:00