mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 12:59:41 +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
@@ -359,38 +359,38 @@ public class TileEntityAdvancedBoundingBlock extends TileEntityBoundingBlock imp
|
||||
|
||||
@Override
|
||||
@Method(modid = "IC2API")
|
||||
public double demandedEnergyUnits()
|
||||
public double getDemandedEnergy()
|
||||
{
|
||||
if(getInv() == null)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
return getInv().demandedEnergyUnits();
|
||||
return getInv().getDemandedEnergy();
|
||||
}
|
||||
|
||||
@Override
|
||||
@Method(modid = "IC2API")
|
||||
public double injectEnergyUnits(ForgeDirection directionFrom, double amount)
|
||||
public double injectEnergy(ForgeDirection directionFrom, double amount, double voltage)
|
||||
{
|
||||
if(getInv() == null)
|
||||
{
|
||||
return amount;
|
||||
}
|
||||
|
||||
return getInv().injectEnergyUnits(directionFrom, amount);
|
||||
return getInv().injectEnergy(directionFrom, amount, voltage);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Method(modid = "IC2API")
|
||||
public int getMaxSafeInput()
|
||||
public int getSinkTier()
|
||||
{
|
||||
if(getInv() == null)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
return getInv().getMaxSafeInput();
|
||||
return getInv().getSinkTier();
|
||||
}
|
||||
|
||||
public IAdvancedBoundingBlock getInv()
|
||||
|
||||
Reference in new issue
Block a user