mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-18 19:56:17 -04:00
Revert "Switched to more specific IEnergyReceiver from IEnergyHandler."
This reverts commit 779599bb3c331028b4c35d9649badd869a5370f6.
This commit is contained in:
parent
af7d4ff507
commit
e04298b8e1
@ -6,7 +6,7 @@ import li.cil.oc.common.asm.Injectable
|
|||||||
import li.cil.oc.integration.Mods
|
import li.cil.oc.integration.Mods
|
||||||
import net.minecraftforge.common.util.ForgeDirection
|
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 {
|
trait RedstoneFlux extends Common {
|
||||||
@Optional.Method(modid = Mods.IDs.CoFHEnergy)
|
@Optional.Method(modid = Mods.IDs.CoFHEnergy)
|
||||||
def canConnectEnergy(from: ForgeDirection) = Mods.CoFHEnergy.isAvailable && canConnectPower(from)
|
def canConnectEnergy(from: ForgeDirection) = Mods.CoFHEnergy.isAvailable && canConnectPower(from)
|
||||||
@ -21,4 +21,7 @@ trait RedstoneFlux extends Common {
|
|||||||
|
|
||||||
@Optional.Method(modid = Mods.IDs.CoFHEnergy)
|
@Optional.Method(modid = Mods.IDs.CoFHEnergy)
|
||||||
def getMaxEnergyStored(from: ForgeDirection) = (globalBufferSize(from) / Settings.get.ratioRedstoneFlux).toInt
|
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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user