public NBTTagCompound getOrCreateLinkData(ItemStack is, TileEntity te)
{
if (is.getTagCompound() == null || !getHasLinkData(is))
{
NBTTagCompound tag = new NBTTagCompound();
tag.setCompoundTag("ElectricExpansion", new NBTTagCompound());
tag.getCompoundTag("ElectricExpansion").setCompoundTag("link", new NBTTagCompound());
NBTTagCompound link = tag.getCompoundTag("ElectricExpansion").getCompoundTag("link");
link.setInteger("x", te.xCoord);
link.setInteger("y", te.yCoord);
link.setInteger("z", te.zCoord);
link.setInteger("dimension", te.worldObj.provider.dimensionId);
is.setTagCompound(tag);
return link;
}