Revert "Switched to more specific IEnergyReceiver from IEnergyHandler."

This reverts commit 779599bb3c331028b4c35d9649badd869a5370f6.
This commit is contained in:
Florian Nücke 2014-11-27 23:06:33 +01:00
parent af7d4ff507
commit e04298b8e1

View File

@ -6,7 +6,7 @@ import li.cil.oc.common.asm.Injectable
import li.cil.oc.integration.Mods
import net.minecraftforge.common.util.ForgeDirection
@Injectable.Interface(value = "cofh.api.energy.IEnergyReceiver", modid = Mods.IDs.CoFHEnergy)
@Injectable.Interface(value = "cofh.api.energy.IEnergyHandler", modid = Mods.IDs.CoFHEnergy)
trait RedstoneFlux extends Common {
@Optional.Method(modid = Mods.IDs.CoFHEnergy)
def canConnectEnergy(from: ForgeDirection) = Mods.CoFHEnergy.isAvailable && canConnectPower(from)
@ -21,4 +21,7 @@ trait RedstoneFlux extends Common {
@Optional.Method(modid = Mods.IDs.CoFHEnergy)
def getMaxEnergyStored(from: ForgeDirection) = (globalBufferSize(from) / Settings.get.ratioRedstoneFlux).toInt
@Optional.Method(modid = Mods.IDs.CoFHEnergy)
def extractEnergy(from: ForgeDirection, maxExtract: Int, simulate: Boolean) = 0
}