This commit is contained in:
modmuss50 2016-04-27 17:20:36 +01:00
commit ca73a31efa

View file

@ -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<ItemStack> 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";
}
}