添加无线收发器的tooltips翻译键
This commit is contained in:
parent
80b9e4ebbd
commit
12463d80f6
|
|
@ -95,7 +95,8 @@ public final class WrenchHook {
|
|||
boolean newLocked = !te.isLocked();
|
||||
te.setLocked(newLocked);
|
||||
// 提示玩家
|
||||
player.displayClientMessage(Component.literal(newLocked ? "已锁定收发器" : "已解锁收发器"), true);
|
||||
String translationKey = newLocked ? "extendedae_plus.tooltips.wireless.transceiver_locked_status" : "extendedae_plus.tooltips.wireless.transceiver_unlocked_status";
|
||||
player.displayClientMessage(Component.translatable(translationKey), true);
|
||||
// 轻微反馈音效
|
||||
level.playSound(player, hit.getBlockPos(), SoundEvents.LEVER_CLICK, SoundSource.BLOCKS, 0.5F, newLocked ? 0.6F : 0.9F);
|
||||
|
||||
|
|
|
|||
|
|
@ -144,13 +144,13 @@
|
|||
"group.entity_ticker.name": "Entity Accelerator",
|
||||
"group.storage.name": "StorageBus",
|
||||
|
||||
|
||||
|
||||
"extendedae_plus.tooltips.wireless.transceiver_locked": "Transceiver locked, cannot modify",
|
||||
"extendedae_plus.tooltips.wireless.channel": "Channel: %s",
|
||||
"extendedae_plus.tooltips.wireless.bound_to": "Transceiver bound to: %s",
|
||||
"extendedae_plus.tooltips.wireless.card_unbound_using_player": "Channel card unbound, using current player",
|
||||
"extendedae_plus.tooltips.wireless.mode": "Mode: %s",
|
||||
"extendedae_plus.tooltips.wireless.mode_master": "Master",
|
||||
"extendedae_plus.tooltips.wireless.mode_slave": "Slave"
|
||||
"extendedae_plus.tooltips.wireless.mode_slave": "Slave",
|
||||
"extendedae_plus.tooltips.wireless.transceiver_locked_status": "Transceiver Locked",
|
||||
"extendedae_plus.tooltips.wireless.transceiver_unlocked_status": "Transceiver Unlocked"
|
||||
}
|
||||
|
|
@ -144,13 +144,13 @@
|
|||
"group.entity_ticker.name": "实体加速器",
|
||||
"group.storage.name": "存储总线",
|
||||
|
||||
|
||||
|
||||
"extendedae_plus.tooltips.wireless.transceiver_locked": "收发器已锁定,无法修改",
|
||||
"extendedae_plus.tooltips.wireless.channel": "频道:%s",
|
||||
"extendedae_plus.tooltips.wireless.bound_to": "已将收发器绑定至:%s",
|
||||
"extendedae_plus.tooltips.wireless.card_unbound_using_player": "频道卡未绑定,已使用当前玩家",
|
||||
"extendedae_plus.tooltips.wireless.mode": "模式:%s",
|
||||
"extendedae_plus.tooltips.wireless.mode_master": "主端",
|
||||
"extendedae_plus.tooltips.wireless.mode_slave": "从端"
|
||||
"extendedae_plus.tooltips.wireless.mode_slave": "从端",
|
||||
"extendedae_plus.tooltips.wireless.transceiver_locked_status": "已锁定收发器",
|
||||
"extendedae_plus.tooltips.wireless.transceiver_unlocked_status": "已解锁收发器"
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user