package tictim.ttmp.item;

import java.util.List;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
import tictim.ttmp.util.AUObject;
import tictim.ttmp.util.TItemInformationWriter;

public class ItemInfiniteAUCapacitor extends ItemAUCapacitor{
	public ItemInfiniteAUCapacitor(){
		super(new AUObject(1048576, 256, true, true),"creative",true);
		this.setUnlocalizedName("AUCapacitor_infinite");
	}
	
	@Override
	public void onUpdate(ItemStack stack, World world, Entity entity, int par4, boolean par5){
		if(world.isRemote)return;
		if(stack.stackTagCompound!=null && stack.stackTagCompound.hasKey("AUVolume")){
			stack.stackTagCompound.setInteger("AUVolume", au.AUMaximumCapacity);
			
		}
		else{
			stack.setTagCompound(this.resetNBT());
		}
	}
	
	@Override
	public String getUnlocalizedNameInefficiently(ItemStack p_77657_1_){
		String s = this.getUnlocalizedName(p_77657_1_);
		return s == null ? "" : EnumChatFormatting.YELLOW+StatCollector.translateToLocal(s);
	}
}
