mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-23 21:39:40 +00:00
Updates for changed IC2 API. Not sure if I'll be able to use @Optional with the new non-legacy BC MJ API as it uses Annotations instead of interfaces.
This commit is contained in:
1 parent
5e0dc25e2b
commit
cd10bc88c8
14 files changed
+126
-34
No files matched your search
@@ -308,9 +308,9 @@ public abstract class TileEntityElectricBlock extends TileEntityContainerBlock i
|
||||
|
||||
@Override
|
||||
@Method(modid = "IC2API")
|
||||
public int getMaxSafeInput()
|
||||
public int getSinkTier()
|
||||
{
|
||||
return Integer.MAX_VALUE;
|
||||
return 4;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -371,7 +371,7 @@ public abstract class TileEntityElectricBlock extends TileEntityContainerBlock i
|
||||
|
||||
@Override
|
||||
@Method(modid = "IC2API")
|
||||
public double demandedEnergyUnits()
|
||||
public double getDemandedEnergy()
|
||||
{
|
||||
return (getMaxEnergy() - getEnergy())*Mekanism.TO_IC2;
|
||||
}
|
||||
@@ -391,7 +391,7 @@ public abstract class TileEntityElectricBlock extends TileEntityContainerBlock i
|
||||
|
||||
@Override
|
||||
@Method(modid = "IC2API")
|
||||
public double injectEnergyUnits(ForgeDirection direction, double i)
|
||||
public double injectEnergy(ForgeDirection direction, double i, double v)
|
||||
{
|
||||
if(Coord4D.get(this).getFromSide(direction).getTileEntity(worldObj) instanceof IGridTransmitter)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user