public ItemHandlerMachine(int inputSlots, int outputSlots, int fuelSlots, TileEntity tile)
{
super(inputSlots + outputSlots + fuelSlots, tile);
this.inputSlots = inputSlots;
this.outputSlots = outputSlots;
this.fuelSlots = fuelSlots;
inputHandler = inputSlots > 0 ? new RangedWrapper(this, 0, inputSlots)
: (IItemHandlerModifiable) EmptyHandler.INSTANCE;
outputHandler = outputSlots > 0 ? new RangedWrapper(this, inputSlots, inputSlots + outputSlots)
: (IItemHandlerModifiable) EmptyHandler.INSTANCE;
fuelHandler = fuelSlots > 0 ? new RangedWrapper(this, inputSlots + outputSlots, inputSlots + outputSlots + fuelSlots)
: (IItemHandlerModifiable) EmptyHandler.INSTANCE;
}