package com.vanhal.progressiveautomation.gui.slots; import cofh.api.energy.IEnergyContainerItem; import com.vanhal.progressiveautomation.entities.BaseTileEntity; import com.vanhal.progressiveautomation.items.ItemRFEngine; import net.minecraft.inventory.IInventory; import net.minecraft.inventory.Slot; import net.minecraft.item.ItemStack; 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 itemStack) { if (itemStack.getItem() instanceof IEnergyContainerItem) { return true; } return false; } }