feat: add getItemStackDisplayName method to ToolCore show i18n name

This commit is contained in:
RiggZh committed 2025-04-17 08:40:56 +08:00
1 parent 6aba01fb2c
commit b216f9ca3c
1 file changed
+5
@@ -822,4 +822,9 @@ public abstract class ToolCore extends Item implements IEnergyContainerItem, IEq
return curTags.equals(prevTags);
}
// end of TE support section
@Override
public String getItemStackDisplayName(ItemStack stack) {
return ToolBuilder.defaultToolName(stack);
}
}