blob: ea75b93cb7fd4c79d392af6eae4c2abd2b32ba7c [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.world.World;
import com.legacy.aether.Aether;
import com.legacy.aether.network.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;
}
@Override
public ItemStack onItemRightClick(ItemStack stackIn, World worldIn, EntityPlayer playerIn) {
playerIn.openGui(Aether.instance, AetherGuiHandler.lore, worldIn, (int) playerIn.posX, (int) playerIn.posY, (int) playerIn.posZ);
return playerIn.getHeldItem();
}
}