This PR is simply a duplicate of #46 but downported for Minecraft: 1.18.
This PR brings various quality of life changes to Registrate which I used to make use of in a seperate child of mod Registrate called Registrator, This just merges the 2 into Registrate.
These changes consit of the following
All builders now have a generic reference to their AbstractRegistrate owner, this means builders know exactly what registrate type owns them.
Useful only for custom registrate types that have new methods, this change allows calling those methods without needing to cast the builders owner property.
Provider types for the new & missing vanilla tag types
Implements ItemLike onto ItemProviderEntry so that it can be passed into places that expect an ItemLike object
ItemStack constructor is good example for this use case
Added functional factory interfaces for each builder type
This change is not so necessary, but makes reading code and lambdas easier to eye, imo
Shortcut methods inside of various builder to their property builder classes
ItemBuilder, BlockBuilder, EntityTypeBuilder
These methods remove the need to chain calls inside of .properties() or call .properties() multiple times
Easy method to quickly clear a data provider callback for a given builder
This PR is simply a duplicate of #46 but downported for Minecraft: 1.18.
This PR brings various quality of life changes to Registrate which I used to make use of in a seperate child of mod Registrate called Registrator, This just merges the 2 into Registrate.
These changes consit of the following