package stucuk.mcicraft.api.interfaces.v3;

import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;

// Interface that can be used to identity if an item is an ItemMCILocation.
//
// I.E
/*
	if (item instanceof IItemMCILocation)
	{
		//It is an IItemMCILocation!
	}
 */

// You can use the setLocation to set the ItemStack's NBT tag but you will need to get
// the NBT Tag from the ItemStack and read the values in it to get the position.
//
// I.E
/*
		int x,y,z;
		String b;
		
		NBTTagCompound tag = stack.getTagCompound();
		if (tag == null)
			return;
		
		x = tag.getInteger("x");
		y = tag.getInteger("y");
		z = tag.getInteger("z");
		b = tag.getString("b"); //LocalizedBlockName
 */

public interface IItemMCILocation {
	public void setLocation(ItemStack stack, int x, int y, int z, String LocalizedBlockName);
}
