22 lines
500 B
Java
22 lines
500 B
Java
package resonantinduction.electrical.encoder;
|
|
|
|
import net.minecraft.inventory.IInventory;
|
|
import net.minecraft.inventory.Slot;
|
|
import net.minecraft.item.ItemStack;
|
|
import resonantinduction.electrical.Electrical;
|
|
|
|
public class SlotDisk extends Slot
|
|
{
|
|
public SlotDisk(IInventory par1iInventory, int par2, int par3, int par4)
|
|
{
|
|
super(par1iInventory, par2, par3, par4);
|
|
}
|
|
|
|
@Override
|
|
public boolean isItemValid(ItemStack itemStack)
|
|
{
|
|
return itemStack.itemID == Electrical.itemDisk.itemID;
|
|
}
|
|
|
|
}
|