package reborncore.client.gui;

import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
import reborncore.api.power.IEnergyItemInfo;

/**
 * Created by Rushmead
 */
public class SlotCharge extends Slot
{
	public SlotCharge(IInventory inventoryIn, int index, int xPosition, int yPosition)
	{
		super(inventoryIn, index, xPosition, yPosition);
	}

	@Override public boolean isItemValid(ItemStack stack)
	{
		if(stack.getItem() instanceof IEnergyItemInfo){
			return true;
		}else{
			return false;
		}
	}
}

Add SlotCharge