样板供应器中按钮改为翻译键

This commit is contained in:
GaLi 2025-11-26 10:28:17 +08:00
parent 5ba16c937c
commit ebfe4e641a
6 changed files with 29 additions and 14 deletions

View File

@ -19,7 +19,7 @@ license = "LGPL-3.0-or-later"
# A list of mods - how many allowed here is determined by the individual mod loader
[[mods]]
modId = "extendedae_plus"
version = "1.21.1-1.4.3"
version = "1.21.1-1.4.4"
displayName = "ExtendedAE-Plus"
issueTrackerURL = "https://github.com/GaLicn/ExtendedAE_Plus/issues"
displayURL = "https://github.com/GaLicn/ExtendedAE_Plus"
@ -40,7 +40,7 @@ authors = "GaLi" #optional
# The description text for the mod (multi line!) (#mandatory)
description = '''Add more practical features and auxiliary operations to the Applied Energistics 2 mod.
Special thanks to contributor C-H716.'''
Special thanks to contributor C-H716.'''
# The [[mixins]] block allows you to declare your mixin config to FML so that it gets loaded.
[[mixins]]

View File

@ -40,7 +40,7 @@ mod_group_id=com.extendedae_plus
# The authors of the mod. This is a simple text string that is used for display purposes in the mod list.
mod_authors=GaLi
# The description of the mod. This is a simple multiline text string that is used for display purposes in the mod list.
mod_description=Add more practical features and auxiliary operations to the Applied Energistics 2 mod. \nSpecial thanks to contributor C-H716.
mod_description=Add more practical features and auxiliary operations to the Applied Energistics 2 mod.
## UI item explorer selection (emi | rei | jei)
# Default to 'emi' per request; you can override by running with -Puse_Xei=rei or -Puse_Xei=jei

View File

@ -72,10 +72,11 @@ public abstract class PatternProviderScreenMixin<C extends PatternProviderMenu>
@Override
public java.util.List<net.minecraft.network.chat.Component> getTooltipMessage() {
boolean enabled = PatternProviderScreenMixin.this.eap$AdvancedBlockingEnabled;
var title = net.minecraft.network.chat.Component.literal("智能阻挡");
var line = enabled
? net.minecraft.network.chat.Component.literal("已启用:对于同一种配方将不再阻挡(需要开启原版的阻挡模式)")
: net.minecraft.network.chat.Component.literal("已禁用:这么好的功能为什么不打开呢");
var title = net.minecraft.network.chat.Component.translatable("gui.tooltips.extendedae_plus.advanced_blocking.title");
var line = net.minecraft.network.chat.Component.translatable(
enabled ? "gui.tooltips.extendedae_plus.advanced_blocking.enabled"
: "gui.tooltips.extendedae_plus.advanced_blocking.disabled"
);
return java.util.List.of(title, line);
}
};
@ -106,10 +107,11 @@ public abstract class PatternProviderScreenMixin<C extends PatternProviderMenu>
@Override
public java.util.List<net.minecraft.network.chat.Component> getTooltipMessage() {
boolean enabled = PatternProviderScreenMixin.this.eap$SmartDoublingEnabled;
var title = net.minecraft.network.chat.Component.literal("智能翻倍");
var line = enabled
? net.minecraft.network.chat.Component.literal("已启用:根据请求量对处理样板进行智能缩放")
: net.minecraft.network.chat.Component.literal("已禁用:按原始样板数量进行发配");
var title = net.minecraft.network.chat.Component.translatable("gui.tooltips.extendedae_plus.smart_doubling.title");
var line = net.minecraft.network.chat.Component.translatable(
enabled ? "gui.tooltips.extendedae_plus.smart_doubling.enabled"
: "gui.tooltips.extendedae_plus.smart_doubling.disabled"
);
return java.util.List.of(title, line);
}
};

View File

@ -138,5 +138,11 @@
"gui.tooltips.extendedae_plus.AccelerateBlacklisted": "Do not accelerate target block entities",
"gui.tooltips.extendedae_plus.RedstoneControl": "Redstone Control",
"gui.tooltips.extendedae_plus.RedstoneControlEnabled": "Control acceleration with redstone signal",
"gui.tooltips.extendedae_plus.RedstoneControlDisabled": "Ignore redstone signals"
"gui.tooltips.extendedae_plus.RedstoneControlDisabled": "Ignore redstone signals",
"gui.tooltips.extendedae_plus.advanced_blocking.title": "Smart Blocking",
"gui.tooltips.extendedae_plus.advanced_blocking.enabled": "Enabled: Will not block the same recipe type (requires vanilla blocking mode to be on)",
"gui.tooltips.extendedae_plus.advanced_blocking.disabled": "Disabled: Why not turn on this great feature?",
"gui.tooltips.extendedae_plus.smart_doubling.title": "Smart Doubling",
"gui.tooltips.extendedae_plus.smart_doubling.enabled": "Enabled: Intelligently scales processing patterns based on request amount",
"gui.tooltips.extendedae_plus.smart_doubling.disabled": "Disabled: Distributes according to original pattern count"
}

View File

@ -137,5 +137,12 @@
"gui.tooltips.extendedae_plus.RedstoneControl": "红石控制",
"gui.tooltips.extendedae_plus.RedstoneControlEnabled": "使用红石信号控制加速",
"gui.tooltips.extendedae_plus.RedstoneControlDisabled": "忽略红石信号"
"gui.tooltips.extendedae_plus.RedstoneControlDisabled": "忽略红石信号",
"gui.tooltips.extendedae_plus.advanced_blocking.title": "智能阻挡",
"gui.tooltips.extendedae_plus.advanced_blocking.enabled": "已启用:对于同一种配方将不再阻挡(需要开启原版的阻挡模式)",
"gui.tooltips.extendedae_plus.advanced_blocking.disabled": "已禁用:这么好的功能为什么不打开呢",
"gui.tooltips.extendedae_plus.smart_doubling.title": "智能翻倍",
"gui.tooltips.extendedae_plus.smart_doubling.enabled": "已启用:根据请求量对处理样板进行智能缩放",
"gui.tooltips.extendedae_plus.smart_doubling.disabled": "已禁用:按原始样板数量进行发配"
}

View File

@ -33,7 +33,7 @@ displayURL = "https://github.com/GaLicn/ExtendedAE_Plus"
logoFile="logo.png"
# A text field displayed in the mod UI
#credits="" #optional
credits="GaLi,C-H716"
# A text field displayed in the mod UI
authors = "${mod_authors}" #optional