2015-06-23 22:29:05 +00:00
|
|
|
package gregtech.common.covers;
|
|
|
|
|
|
|
|
import gregtech.api.GregTech_API;
|
|
|
|
import gregtech.api.interfaces.tileentity.ICoverable;
|
|
|
|
|
|
|
|
public class GT_Cover_RedstoneReceiverExternal
|
2015-10-22 02:15:09 +00:00
|
|
|
extends GT_Cover_RedstoneWirelessBase {
|
|
|
|
public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer) {
|
|
|
|
aTileEntity.setOutputRedstoneSignal(aSide, GregTech_API.sWirelessRedstone.get(Integer.valueOf(aCoverVariable)) == null ? 0 : ((Byte) GregTech_API.sWirelessRedstone.get(Integer.valueOf(aCoverVariable))).byteValue());
|
|
|
|
return aCoverVariable;
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean manipulatesSidedRedstoneOutput(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity) {
|
|
|
|
return 1;
|
|
|
|
}
|
2015-06-23 22:29:05 +00:00
|
|
|
}
|