正确添加小口径炮弹的描述翻译字段

This commit is contained in:
Light_Quanta 2025-05-04 04:58:52 +08:00
parent b5b658027d
commit 05e4901400
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959
3 changed files with 9 additions and 4 deletions

View file

@ -14,10 +14,9 @@ public class SmallShellItem extends Item {
super(new Properties());
}
// TODO 正确添加翻译字段
@Override
@ParametersAreNonnullByDefault
public void appendHoverText(ItemStack stack, TooltipContext context, List<Component> tooltipComponents, TooltipFlag tooltipFlag) {
tooltipComponents.add(Component.translatable("20mm ~ 40mm").withStyle(ChatFormatting.GRAY));
tooltipComponents.add(Component.translatable("des.superbwarfare.small_shell_item").withStyle(ChatFormatting.GRAY));
}
}

View file

@ -619,7 +619,10 @@
"warning.title.example": "[SuperbWarfare Mod Warning]",
"warning.content.example": "This mod is Free And Open-Source, No Commercial Use\nCode: GPL-3.0 License; Asserts: Private (No Commercialization)\nBan on paid downloads or EULA-breaking purchases\nReport violations by submitting an issue in the mod's repository",
"warning.check.example": "I have read and agreed to the content. Do not show this message again",
"block.superbwarfare.vehicle_deployer": "Vehicle Deployer",
"des.superbwarfare.vehicle_deployer.success": "Vehicle info set successfully!",
"des.superbwarfare.vehicle_deployer.fail": "Please click with a container!"
"des.superbwarfare.vehicle_deployer.fail": "Please click with a container!",
"des.superbwarfare.small_shell_item": "20mm ~ 40mm"
}

View file

@ -620,7 +620,10 @@
"warning.title.example": "【卓越前线 警示声明】",
"warning.content.example": "== 本模组完全免费开源,禁止用于任何商业行为 ==\n本模组代码采用GPL-3协议开源美术资源私有禁止商用\n禁止付费下载、充值获取道具等违反协议和Mojang EULA的行为\n如遇以上行为请到本模组仓库处提交Issue进行举报",
"warning.check.example": "我已阅读并同意,不再显示此警告",
"block.superbwarfare.vehicle_deployer": "载具部署器",
"des.superbwarfare.vehicle_deployer.success": "成功设置载具信息!",
"des.superbwarfare.vehicle_deployer.fail": "请使用集装箱点击!"
"des.superbwarfare.vehicle_deployer.fail": "请使用集装箱点击!",
"des.superbwarfare.small_shell_item": "20mm ~ 40mm"
}