package net.mcft.copy.betterstorage.item.tile;

import java.util.List;

import net.mcft.copy.betterstorage.tile.entity.TileEntityPresent;
import net.mcft.copy.betterstorage.utils.StackUtils;
import net.minecraft.block.Block;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.EnumRarity;
import net.minecraft.item.ItemStack;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

public class ItemPresent extends ItemCardboardBox {
	
	public ItemPresent(Block block) {
		super(block);
	}
	
	@Override
	public EnumRarity getRarity(ItemStack stack) { return EnumRarity.uncommon; }
	
	@Override
	public boolean showDurabilityBar(ItemStack stack) { return false; }
	
	@Override
	@SideOnly(Side.CLIENT)
	public int getColorFromItemStack(ItemStack stack, int renderPass) { return 0xFFFFFF; }
	
	@Override
	@SideOnly(Side.CLIENT)
	public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean advancedTooltips) {
		String nameTag = StackUtils.get(stack, null, TileEntityPresent.TAG_NAMETAG);
		if (nameTag != null) list.add("for " + nameTag);
	}
	
}

@@ -1104,10 +1104,99 @@
 );%0A%09%7D%0A%09%0A
+%09@Override%0A%09public boolean canBeStoredInContainerItem(ItemStack item) %7B return true; %7D%0A%09%0A
 %7D%0A

Allow presents to be placed inside container items