From ab1a2910dd3b5659a229beb7a4a4389db964d9c2 Mon Sep 17 00:00:00 2001 From: Prospector Date: Mon, 25 Apr 2016 07:00:31 -0700 Subject: [PATCH] Get rid of scrapbox code in freq. transmitter :P --- .../items/ItemFrequencyTransmitter.java | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/main/java/techreborn/items/ItemFrequencyTransmitter.java b/src/main/java/techreborn/items/ItemFrequencyTransmitter.java index 82815660e..63389aa7f 100644 --- a/src/main/java/techreborn/items/ItemFrequencyTransmitter.java +++ b/src/main/java/techreborn/items/ItemFrequencyTransmitter.java @@ -4,14 +4,17 @@ import me.modmuss50.jsonDestroyer.api.ITexturedItem; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraft.util.ActionResult; +import net.minecraft.util.EnumActionResult; import net.minecraft.util.EnumHand; import net.minecraft.world.World; import reborncore.RebornCore; import techreborn.client.TechRebornCreativeTabMisc; -public class ItemFrequencyTransmitter extends ItemTextureBase implements ITexturedItem { +public class ItemFrequencyTransmitter extends ItemTextureBase implements ITexturedItem +{ - public ItemFrequencyTransmitter() { + public ItemFrequencyTransmitter() + { setUnlocalizedName("techreborn.frequencyTransmitter"); setCreativeTab(TechRebornCreativeTabMisc.instance); RebornCore.jsonDestroyer.registerObject(this); @@ -19,17 +22,20 @@ public class ItemFrequencyTransmitter extends ItemTextureBase implements ITextur @Override public ActionResult onItemRightClick(ItemStack itemStack, World world, EntityPlayer player, - EnumHand hand) { - return null; + EnumHand hand) + { + return new ActionResult<>(EnumActionResult.SUCCESS, itemStack); } @Override - public int getMaxMeta() { + public int getMaxMeta() + { return 1; } @Override - public String getTextureName(int arg0) { + public String getTextureName(int arg0) + { return "techreborn:items/misc/frequency_transmitter"; } }