mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-15 10:21:45 -04:00
Removed deprecated EIO capacitor driver, closes #652.
This commit is contained in:
parent
3ecc2885da
commit
a5e3dc4090
@ -76,7 +76,6 @@ object Mods {
|
||||
tryInit(integration.cofh.energy.ModCoFHEnergy)
|
||||
tryInit(integration.cofh.tileentity.ModCoFHTileEntity)
|
||||
tryInit(integration.cofh.transport.ModCoFHTransport)
|
||||
tryInit(integration.enderio.ModEnderIO)
|
||||
tryInit(integration.enderstorage.ModEnderStorage)
|
||||
tryInit(integration.forestry.ModForestry)
|
||||
tryInit(integration.fmp.ModForgeMultipart)
|
||||
|
@ -1,38 +0,0 @@
|
||||
package li.cil.oc.integration.enderio;
|
||||
|
||||
import crazypants.enderio.machine.power.TileCapacitorBank;
|
||||
import li.cil.oc.api.machine.Arguments;
|
||||
import li.cil.oc.api.machine.Callback;
|
||||
import li.cil.oc.api.machine.Context;
|
||||
import li.cil.oc.api.network.ManagedEnvironment;
|
||||
import li.cil.oc.api.prefab.DriverTileEntity;
|
||||
import li.cil.oc.integration.ManagedTileEntityEnvironment;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public final class DriverCapacitor extends DriverTileEntity {
|
||||
@Override
|
||||
public Class<?> getTileEntityClass() {
|
||||
return TileCapacitorBank.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ManagedEnvironment createEnvironment(final World world, final int x, final int y, final int z) {
|
||||
return new Environment((TileCapacitorBank) world.getTileEntity(x, y, z));
|
||||
}
|
||||
|
||||
public static final class Environment extends ManagedTileEntityEnvironment<TileCapacitorBank> {
|
||||
public Environment(final TileCapacitorBank tileEntity) {
|
||||
super(tileEntity, "enderio_capacitor");
|
||||
}
|
||||
|
||||
@Callback(doc = "function():number -- Returns the amount of energy stored in the capacitor bank.")
|
||||
public Object[] getEnergyStored(final Context context, final Arguments args) {
|
||||
return new Object[]{tileEntity.getEnergyStored()};
|
||||
}
|
||||
|
||||
@Callback(doc = "function():number -- Returns the maximum amount of energy the capacitor bank can store.")
|
||||
public Object[] getMaxEnergyStored(final Context context, final Arguments args) {
|
||||
return new Object[]{tileEntity.getMaxEnergyStored()};
|
||||
}
|
||||
}
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
package li.cil.oc.integration.enderio
|
||||
|
||||
import li.cil.oc.api.Driver
|
||||
import li.cil.oc.integration.ModProxy
|
||||
import li.cil.oc.integration.Mods
|
||||
|
||||
object ModEnderIO extends ModProxy {
|
||||
override def getMod = Mods.EnderIO
|
||||
|
||||
override def initialize() {
|
||||
Driver.add(new DriverCapacitor)
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user