From d0ff8c1c6b6dbe4b6f3ce33a380ee837632a9507 Mon Sep 17 00:00:00 2001 From: Christina Berchtold Date: Mon, 4 May 2020 00:21:42 +0200 Subject: visiting Lucy --- .../common/itemBlocks/IB_ItemProxyEndpoint.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/main/java/common/itemBlocks/IB_ItemProxyEndpoint.java (limited to 'src/main/java/common/itemBlocks/IB_ItemProxyEndpoint.java') diff --git a/src/main/java/common/itemBlocks/IB_ItemProxyEndpoint.java b/src/main/java/common/itemBlocks/IB_ItemProxyEndpoint.java new file mode 100644 index 0000000000..49fb7d7430 --- /dev/null +++ b/src/main/java/common/itemBlocks/IB_ItemProxyEndpoint.java @@ -0,0 +1,22 @@ +package common.itemBlocks; + +import java.util.List; + +import net.minecraft.block.Block; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.item.ItemBlock; +import net.minecraft.item.ItemStack; + +public class IB_ItemProxyEndpoint extends ItemBlock { + + public IB_ItemProxyEndpoint(Block block) { + super(block); + } + + @SuppressWarnings({ "rawtypes", "unchecked" }) + @Override + public void addInformation(ItemStack stack, EntityPlayer player, List lines, boolean advancedTooltips) { + lines.add("Point the marked side to where you want to provide an inventory proxy to."); + lines.add("Insert an Integrated Circuit to set the network channel."); + } +} -- cgit 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_ItemProxyEndpoint.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/main/java/common/itemBlocks/IB_ItemProxyEndpoint.java') diff --git a/src/main/java/common/itemBlocks/IB_ItemProxyEndpoint.java b/src/main/java/common/itemBlocks/IB_ItemProxyEndpoint.java index 49fb7d7430..b0a1a558a9 100644 --- a/src/main/java/common/itemBlocks/IB_ItemProxyEndpoint.java +++ b/src/main/java/common/itemBlocks/IB_ItemProxyEndpoint.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_ItemProxyEndpoint extends ItemBlock { @@ -13,10 +14,10 @@ public class IB_ItemProxyEndpoint extends ItemBlock { super(block); } - @SuppressWarnings({ "rawtypes", "unchecked" }) + @SuppressWarnings({"unchecked"}) @Override public void addInformation(ItemStack stack, EntityPlayer player, List lines, boolean advancedTooltips) { - lines.add("Point the marked side to where you want to provide an inventory proxy to."); - lines.add("Insert an Integrated Circuit to set the network channel."); + lines.add(StatCollector.translateToLocal("tile.kekztech_itemproxyendpoint_block.0.desc")); + lines.add(StatCollector.translateToLocal("tile.kekztech_itemproxyendpoint_block.1.desc")); } } -- cgit