样板供应器中按钮改为翻译键
This commit is contained in:
parent
5ba16c937c
commit
ebfe4e641a
|
|
@ -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
|
# A list of mods - how many allowed here is determined by the individual mod loader
|
||||||
[[mods]]
|
[[mods]]
|
||||||
modId = "extendedae_plus"
|
modId = "extendedae_plus"
|
||||||
version = "1.21.1-1.4.3"
|
version = "1.21.1-1.4.4"
|
||||||
displayName = "ExtendedAE-Plus"
|
displayName = "ExtendedAE-Plus"
|
||||||
issueTrackerURL = "https://github.com/GaLicn/ExtendedAE_Plus/issues"
|
issueTrackerURL = "https://github.com/GaLicn/ExtendedAE_Plus/issues"
|
||||||
displayURL = "https://github.com/GaLicn/ExtendedAE_Plus"
|
displayURL = "https://github.com/GaLicn/ExtendedAE_Plus"
|
||||||
|
|
@ -40,7 +40,7 @@ authors = "GaLi" #optional
|
||||||
|
|
||||||
# The description text for the mod (multi line!) (#mandatory)
|
# The description text for the mod (multi line!) (#mandatory)
|
||||||
description = '''Add more practical features and auxiliary operations to the Applied Energistics 2 mod.
|
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.
|
# The [[mixins]] block allows you to declare your mixin config to FML so that it gets loaded.
|
||||||
[[mixins]]
|
[[mixins]]
|
||||||
|
|
|
||||||
|
|
@ -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.
|
# The authors of the mod. This is a simple text string that is used for display purposes in the mod list.
|
||||||
mod_authors=GaLi
|
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.
|
# 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)
|
## 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
|
# Default to 'emi' per request; you can override by running with -Puse_Xei=rei or -Puse_Xei=jei
|
||||||
|
|
|
||||||
|
|
@ -72,10 +72,11 @@ public abstract class PatternProviderScreenMixin<C extends PatternProviderMenu>
|
||||||
@Override
|
@Override
|
||||||
public java.util.List<net.minecraft.network.chat.Component> getTooltipMessage() {
|
public java.util.List<net.minecraft.network.chat.Component> getTooltipMessage() {
|
||||||
boolean enabled = PatternProviderScreenMixin.this.eap$AdvancedBlockingEnabled;
|
boolean enabled = PatternProviderScreenMixin.this.eap$AdvancedBlockingEnabled;
|
||||||
var title = net.minecraft.network.chat.Component.literal("智能阻挡");
|
var title = net.minecraft.network.chat.Component.translatable("gui.tooltips.extendedae_plus.advanced_blocking.title");
|
||||||
var line = enabled
|
var line = net.minecraft.network.chat.Component.translatable(
|
||||||
? net.minecraft.network.chat.Component.literal("已启用:对于同一种配方将不再阻挡(需要开启原版的阻挡模式)")
|
enabled ? "gui.tooltips.extendedae_plus.advanced_blocking.enabled"
|
||||||
: net.minecraft.network.chat.Component.literal("已禁用:这么好的功能为什么不打开呢");
|
: "gui.tooltips.extendedae_plus.advanced_blocking.disabled"
|
||||||
|
);
|
||||||
return java.util.List.of(title, line);
|
return java.util.List.of(title, line);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
@ -106,10 +107,11 @@ public abstract class PatternProviderScreenMixin<C extends PatternProviderMenu>
|
||||||
@Override
|
@Override
|
||||||
public java.util.List<net.minecraft.network.chat.Component> getTooltipMessage() {
|
public java.util.List<net.minecraft.network.chat.Component> getTooltipMessage() {
|
||||||
boolean enabled = PatternProviderScreenMixin.this.eap$SmartDoublingEnabled;
|
boolean enabled = PatternProviderScreenMixin.this.eap$SmartDoublingEnabled;
|
||||||
var title = net.minecraft.network.chat.Component.literal("智能翻倍");
|
var title = net.minecraft.network.chat.Component.translatable("gui.tooltips.extendedae_plus.smart_doubling.title");
|
||||||
var line = enabled
|
var line = net.minecraft.network.chat.Component.translatable(
|
||||||
? net.minecraft.network.chat.Component.literal("已启用:根据请求量对处理样板进行智能缩放")
|
enabled ? "gui.tooltips.extendedae_plus.smart_doubling.enabled"
|
||||||
: net.minecraft.network.chat.Component.literal("已禁用:按原始样板数量进行发配");
|
: "gui.tooltips.extendedae_plus.smart_doubling.disabled"
|
||||||
|
);
|
||||||
return java.util.List.of(title, line);
|
return java.util.List.of(title, line);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -138,5 +138,11 @@
|
||||||
"gui.tooltips.extendedae_plus.AccelerateBlacklisted": "Do not accelerate target block entities",
|
"gui.tooltips.extendedae_plus.AccelerateBlacklisted": "Do not accelerate target block entities",
|
||||||
"gui.tooltips.extendedae_plus.RedstoneControl": "Redstone Control",
|
"gui.tooltips.extendedae_plus.RedstoneControl": "Redstone Control",
|
||||||
"gui.tooltips.extendedae_plus.RedstoneControlEnabled": "Control acceleration with redstone signal",
|
"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"
|
||||||
}
|
}
|
||||||
|
|
@ -137,5 +137,12 @@
|
||||||
|
|
||||||
"gui.tooltips.extendedae_plus.RedstoneControl": "红石控制",
|
"gui.tooltips.extendedae_plus.RedstoneControl": "红石控制",
|
||||||
"gui.tooltips.extendedae_plus.RedstoneControlEnabled": "使用红石信号控制加速",
|
"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": "已禁用:按原始样板数量进行发配"
|
||||||
}
|
}
|
||||||
|
|
@ -33,7 +33,7 @@ displayURL = "https://github.com/GaLicn/ExtendedAE_Plus"
|
||||||
logoFile="logo.png"
|
logoFile="logo.png"
|
||||||
|
|
||||||
# A text field displayed in the mod UI
|
# A text field displayed in the mod UI
|
||||||
#credits="" #optional
|
credits="GaLi,C-H716"
|
||||||
|
|
||||||
# A text field displayed in the mod UI
|
# A text field displayed in the mod UI
|
||||||
authors = "${mod_authors}" #optional
|
authors = "${mod_authors}" #optional
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user