From 365596ab8260469d6cb7e93db1cd4fd7f88f677a Mon Sep 17 00:00:00 2001 From: Calclavia Date: Tue, 18 Feb 2014 12:37:49 +0800 Subject: [PATCH] Added RedstoneControl --- .../mechanical/logistic/TileRailing.java | 6 ----- .../logistic/rail/RedstoneControl.java | 25 +++++++++++++++++++ .../mechanical/logistic/rail/TileRailing.java | 6 +++++ 3 files changed, 31 insertions(+), 6 deletions(-) delete mode 100644 mechanical/src/main/java/resonantinduction/mechanical/logistic/TileRailing.java create mode 100644 mechanical/src/main/java/resonantinduction/mechanical/logistic/rail/RedstoneControl.java create mode 100644 mechanical/src/main/java/resonantinduction/mechanical/logistic/rail/TileRailing.java diff --git a/mechanical/src/main/java/resonantinduction/mechanical/logistic/TileRailing.java b/mechanical/src/main/java/resonantinduction/mechanical/logistic/TileRailing.java deleted file mode 100644 index 70ddf76a6..000000000 --- a/mechanical/src/main/java/resonantinduction/mechanical/logistic/TileRailing.java +++ /dev/null @@ -1,6 +0,0 @@ -package resonantinduction.mechanical.logistic; - -public class TileRailing -{ - -} diff --git a/mechanical/src/main/java/resonantinduction/mechanical/logistic/rail/RedstoneControl.java b/mechanical/src/main/java/resonantinduction/mechanical/logistic/rail/RedstoneControl.java new file mode 100644 index 000000000..d763a2e1d --- /dev/null +++ b/mechanical/src/main/java/resonantinduction/mechanical/logistic/rail/RedstoneControl.java @@ -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); + } +} diff --git a/mechanical/src/main/java/resonantinduction/mechanical/logistic/rail/TileRailing.java b/mechanical/src/main/java/resonantinduction/mechanical/logistic/rail/TileRailing.java new file mode 100644 index 000000000..e56b00df4 --- /dev/null +++ b/mechanical/src/main/java/resonantinduction/mechanical/logistic/rail/TileRailing.java @@ -0,0 +1,6 @@ +package resonantinduction.mechanical.logistic.rail; + +public class TileRailing +{ + +}