Added RedstoneControl

This commit is contained in:
Calclavia 2014-02-18 12:37:49 +08:00
parent 2f0e58590c
commit 365596ab82
3 changed files with 31 additions and 6 deletions

View file

@ -1,6 +0,0 @@
package resonantinduction.mechanical.logistic;
public class TileRailing
{
}

View file

@ -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);
}
}

View file

@ -0,0 +1,6 @@
package resonantinduction.mechanical.logistic.rail;
public class TileRailing
{
}