Currently, displays (TileEntityInfoPanel and GuiPortablePanel) call ItemCardMain#getStringData to get the display strings, which can only return information for the main card item. As a result, IItemCard#getStringData will not be called on custom addon-provided cards.
Missing build dependencies
After attempting to set up the workspace, I noticed a couple of build dependencies were missing, which prevented the mod from compiling.
The solution
Build Dependencies
The mod now compiles properly.
Replaced custom Galacticraft download with cursemaven, as the mod is now available on CurseForge.
Added EnderIO, EnderCore and Autosave
Added IC2 Classic
Added GregTech CE Unofficial
Added Railcraft
Added NuclearCraft Overhauled
Added the 1.12 fork of HBM as a local flatDir dependency. This is allowed by the mod's license. I've also tried using Jitpack to get the release from maven, however, idea refused to pick it up.
Added CraftTweaker2
Custom card display info
Replaced calls to ItemCardMain#getStringData with IItemCard#getStringData on the current context's item
Made ItemCardBase implement IItemCard to ensure it behaves the same as custom cards and prevent future bugs
The issue
Broken custom card display info
Currently, displays (
TileEntityInfoPanel
andGuiPortablePanel
) callItemCardMain#getStringData
to get the display strings, which can only return information for the main card item. As a result,IItemCard#getStringData
will not be called on custom addon-provided cards.Missing build dependencies
After attempting to set up the workspace, I noticed a couple of build dependencies were missing, which prevented the mod from compiling.
The solution
Build Dependencies
The mod now compiles properly.
Custom card display info
ItemCardMain#getStringData
withIItemCard#getStringData
on the current context's itemItemCardBase
implementIItemCard
to ensure it behaves the same as custom cards and prevent future bugs