Updated RotaryCraft API.
This commit is contained in:
parent
2c839493dd
commit
493cbcd3c2
1 changed files with 13 additions and 4 deletions
|
@ -74,19 +74,17 @@ public abstract class RotaryCraft extends IC2 implements ShaftPowerReceiver
|
|||
alpha = io;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
final public int getMachineX()
|
||||
{
|
||||
return xCoord;
|
||||
}
|
||||
|
||||
@Override
|
||||
final public int getMachineY()
|
||||
{
|
||||
return yCoord;
|
||||
}
|
||||
|
||||
@Override
|
||||
final public int getMachineZ()
|
||||
{
|
||||
return zCoord;
|
||||
|
@ -113,7 +111,6 @@ public abstract class RotaryCraft extends IC2 implements ShaftPowerReceiver
|
|||
power = p;
|
||||
}
|
||||
|
||||
@Override
|
||||
final public boolean canReadFromBlock(int x, int y, int z)
|
||||
{
|
||||
ForgeDirection side = ForgeDirection.UNKNOWN;
|
||||
|
@ -148,4 +145,16 @@ public abstract class RotaryCraft extends IC2 implements ShaftPowerReceiver
|
|||
omega = 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
final public boolean canReadFrom(ForgeDirection side)
|
||||
{
|
||||
return internalCanAcceptPower && getPowerSides().contains( side );
|
||||
}
|
||||
|
||||
@Override
|
||||
final public int getMinTorque(int available)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue