@@ -0,0 +1,1897 @@
+package shedar.mods.ic2.nuclearcontrol.crossmod.opencomputers;%0A%0Aimport li.cil.oc.api.machine.Callback;%0A%0Aimport li.cil.oc.api.machine.Arguments;%0Aimport li.cil.oc.api.machine.Context;%0Aimport shedar.mods.ic2.nuclearcontrol.crossmod.opencomputers.DriverInfoPanel.Environment;%0Aimport li.cil.oc.api.driver.NamedBlock;%0Aimport li.cil.oc.integration.ManagedTileEntityEnvironment;%0Aimport shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityInfoPanel;%0Aimport shedar.mods.ic2.nuclearcontrol.tileentities.TileEntityAverageCounter;%0Aimport li.cil.oc.api.network.ManagedEnvironment;%0Aimport net.minecraft.world.World;%0Aimport li.cil.oc.api.prefab.DriverTileEntity;%0A%0A/**%0A * OC Driver for the average counter.%0A * %0A * @author xbony2%0A */%0Apublic class DriverAverageCounter extends DriverTileEntity%7B%0A%09public static final String NAME = %22info_panel%22;%0A%0A%09@Override%0A%09public ManagedEnvironment createEnvironment(World world, int x, int y, int z)%7B%0A%09%09return new Environment((TileEntityAverageCounter)world.getTileEntity(x, y, z));%0A%09%7D%0A%0A%09@Override%0A%09public Class%3C?%3E getTileEntityClass()%7B%0A%09%09return TileEntityAverageCounter.class;%0A%09%7D%0A%09%0A%09public static final class Environment extends ManagedTileEntityEnvironment%3CTileEntityAverageCounter%3E implements NamedBlock%7B%0A%09%09public Environment(final TileEntityAverageCounter tileentity) %7B%0A%09%09%09super(tileentity, NAME);%0A%09%09%7D%0A%0A%09%09@Override%0A%09%09public String preferredName() %7B%0A%09%09%09return NAME;%0A%09%09%7D%0A%0A%09%09@Override%0A%09%09public int priority() %7B%0A%09%09%09return 0;%0A%09%09%7D%0A%09%09%0A%09%09@Callback(doc = %22function():number -- gets the period (in seconds) of the average counter.%22)%0A%09%09public Object%5B%5D getPeriod(final Context context, final Arguments args)%7B%0A%09%09%09return new Object%5B%5D%7B((int)tileEntity.period)%7D;%0A%09%09%7D%0A%09%09%0A%09%09@Callback(doc = %22function():number -- gets the average of the counter.%22)%0A%09%09public Object%5B%5D getAverage(final Context context, final Arguments args)%7B%0A%09%09%09return new Object%5B%5D%7B((int)tileEntity.getClientAverage())%7D;%0A%09%09%7D%0A%09%7D%0A%7D%0A

Create DriverAverageCounter.java