Files
Mekanism-Community-Edition/src/mekanism/common/SlotEnergy.java
T
Aidan Brady 45b4510dc7 v5.0.1 Beta #2
*Updated to MC v1.4.6.
*Updated all APIs.
*Repackaged for new Forge.
*Added Metallurgic Infuser for making Steel and Bronze.
*Added Refined Steel Dust.
*Added Refined Steel Ingots.
*Made Refined Iron -> Steel Block.
*Maps instead of Vectors for recipes.
*New recipe managing for Metallurgic Infuser.
*Cleaned up imports.
*Added new Javadocs.
*Made Electrolytic Separator texture changed based on what gas it is
outputting.
*Other various bugfixes.
2012-12-20 16:53:39 -05:00

23 lines
631 B
Java

package mekanism.common;
import ic2.api.IElectricItem;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import universalelectricity.core.implement.IItemElectric;
public class SlotEnergy extends Slot
{
public SlotEnergy(IInventory inventory, int index, int x, int y)
{
super(inventory, index, x, y);
}
@Override
public boolean isItemValid(ItemStack itemstack)
{
return itemstack.getItem() instanceof IElectricItem || itemstack.getItem() instanceof IItemElectric || itemstack.itemID == Item.redstone.shiftedIndex;
}
}