Added RedstoneControl
This commit is contained in:
parent
2f0e58590c
commit
365596ab82
3 changed files with 31 additions and 6 deletions
|
@ -1,6 +0,0 @@
|
|||
package resonantinduction.mechanical.logistic;
|
||||
|
||||
public class TileRailing
|
||||
{
|
||||
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
package resonantinduction.mechanical.logistic.rail;
|
||||
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
|
||||
public class RedstoneControl
|
||||
{
|
||||
private TileEntity tile;
|
||||
|
||||
/**
|
||||
* Settings
|
||||
*/
|
||||
private byte input;
|
||||
|
||||
private byte output;
|
||||
|
||||
public RedstoneControl(TileEntity tile)
|
||||
{
|
||||
this.tile = tile;
|
||||
}
|
||||
|
||||
public boolean isActive()
|
||||
{
|
||||
return tile.worldObj.isBlockIndirectlyGettingPowered(tile.xCoord, tile.yCoord, tile.zCoord);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
package resonantinduction.mechanical.logistic.rail;
|
||||
|
||||
public class TileRailing
|
||||
{
|
||||
|
||||
}
|
Loading…
Reference in a new issue