Updated RF Api ( should work for old api too - at least temporary ).
This commit is contained in:
@@ -17,12 +17,6 @@ public class NullRFHandler implements IEnergyHandler
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canInterface(ForgeDirection from)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getEnergyStored(ForgeDirection from)
|
||||
{
|
||||
@@ -35,4 +29,15 @@ public class NullRFHandler implements IEnergyHandler
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public boolean canInterface(ForgeDirection from)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canConnectEnergy(ForgeDirection from) {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -156,12 +156,6 @@ public class PartP2PRFPower extends PartP2PTunnel<PartP2PRFPower> implements cof
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canInterface(ForgeDirection from)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getEnergyStored(ForgeDirection from)
|
||||
{
|
||||
@@ -249,4 +243,15 @@ public class PartP2PRFPower extends PartP2PTunnel<PartP2PRFPower> implements cof
|
||||
}
|
||||
return myNullHandler;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public boolean canInterface(ForgeDirection from)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canConnectEnergy(ForgeDirection from) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,8 +34,13 @@ public abstract class RedstoneFlux extends RotaryCraft implements IEnergyHandler
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
final public boolean canInterface(ForgeDirection from)
|
||||
{
|
||||
return canConnectEnergy(from);
|
||||
}
|
||||
|
||||
final public boolean canConnectEnergy(ForgeDirection from)
|
||||
{
|
||||
return internalCanAcceptPower && getPowerSides().contains( from );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user