the PR contains multiple things to help making expansions.
Custom CardDisplays. CardDisplayBlockEntity now uses BuddycardsBlocks::DISPLAY_BLOCKS to get the needed blocks. So expansions can use BuddycardsBlocks::registerDisplay to register their displays.
Change a lot of private field to protected for inheritance
MedalRenderer uses now a ResourceLocation for mod based resource paths
Random -> Rarity weights. Helps to create sets where some rarities does not exist without implementing some custom behavior. Pack creation fails if no weights set. Also crashes if weights contains a rarity which does not exist in the card set.
Replace String set with BuddycardSet set. Every set now knows his medal and the cards and also provides the descriptions id for translation.
Hey,
the PR contains multiple things to help making expansions.
CardDisplayBlockEntity
now usesBuddycardsBlocks::DISPLAY_BLOCKS
to get the needed blocks. So expansions can useBuddycardsBlocks::registerDisplay
to register their displays.MedalRenderer
uses now aResourceLocation
for mod based resource pathsString set
withBuddycardSet set
. Every set now knows his medal and the cards and also provides the descriptions id for translation.