Changes

Summary

  1. Add IdAwareComponentRegistry (details)
Commit d51ba38ec75a82bc6dc24de7891534bf5592f435 by KnightMiner
Add IdAwareComponentRegistry

Same as NamedComponentRegistry, but for objects implementing IdAwareObject. Simplifies the logic for getKey and removes the name specific register method compared to the NamedComponentRegistry
The file was addedsrc/main/java/slimeknights/mantle/data/registry/IdAwareComponentRegistry.java
The file was addedsrc/main/java/slimeknights/mantle/data/registry/AbstractNamedComponentRegistry.java
The file was modifiedsrc/main/java/slimeknights/mantle/data/registry/NamedComponentRegistry.java (diff)