From d8f485f3492a6e6df62f40a6b3218156bc244a28 Mon Sep 17 00:00:00 2001 From: kekzdealer Date: Tue, 12 May 2020 19:48:19 +0200 Subject: Improved options for localization for all Block tooltips --- src/main/java/common/itemBlocks/IB_ItemProxySource.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/main/java/common/itemBlocks/IB_ItemProxySource.java') diff --git a/src/main/java/common/itemBlocks/IB_ItemProxySource.java b/src/main/java/common/itemBlocks/IB_ItemProxySource.java index 1dc70efd6e..68ab1b00ff 100644 --- a/src/main/java/common/itemBlocks/IB_ItemProxySource.java +++ b/src/main/java/common/itemBlocks/IB_ItemProxySource.java @@ -6,6 +6,7 @@ import net.minecraft.block.Block; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemBlock; import net.minecraft.item.ItemStack; +import net.minecraft.util.StatCollector; public class IB_ItemProxySource extends ItemBlock { @@ -13,11 +14,11 @@ public class IB_ItemProxySource extends ItemBlock { super(block); } - @SuppressWarnings({ "rawtypes", "unchecked" }) + @SuppressWarnings({"unchecked"}) @Override public void addInformation(ItemStack stack, EntityPlayer player, List lines, boolean advancedTooltips) { - lines.add("Point to an inventory to act as source for the item proxy network."); - lines.add("Insert an Integrated Circuit to set the network channel."); - lines.add("Only one source can use one channel on the same network."); + lines.add(StatCollector.translateToLocal("tile:kekztech_itemproxysource_block.0.desc")); + lines.add(StatCollector.translateToLocal("tile:kekztech_itemproxysource_block.1.desc")); + lines.add(StatCollector.translateToLocal("tile:kekztech_itemproxysource_block.2.desc")); } } -- cgit