blob: 26f8240ff93337c2dcb3a7920ac352c8a488d470 [file] [log] [blame] [raw]
package com.legacy.aether.items;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.EnumRarity;
import net.minecraft.item.Item;
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 com.legacy.aether.Aether;
import com.legacy.aether.networking.AetherGuiHandler;
import com.legacy.aether.registry.creative_tabs.AetherCreativeTabs;
public class ItemLoreBook extends Item
{
public ItemLoreBook()
{
this.setMaxStackSize(1);
this.setCreativeTab(AetherCreativeTabs.misc);
}
@Override
public EnumRarity getRarity(ItemStack stack)
{
return ItemsAether.aether_loot;
}
public ActionResult<ItemStack> onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer playerIn, EnumHand hand)
{
playerIn.openGui(Aether.instance, AetherGuiHandler.lore, worldIn, (int)playerIn.posX, (int)playerIn.posY, (int)playerIn.posZ);
return new ActionResult<ItemStack>(EnumActionResult.PASS, itemStackIn);
}
}