use of com.bluepowermod.part.gate.component.GateComponentTorch in project BluePower by Qmunity.
the class GateOr method initComponents.
@Override
public void initComponents() {
t1 = new GateComponentTorch(this, 0x0000FF, 4 / 16D, true);
t1.setState(true);
addComponent(t1);
t2 = new GateComponentTorch(this, 0x6F00B5, 5 / 16D, true);
t2.setState(false);
addComponent(t2);
addComponent(w = new GateComponentWire(this, 0x18FF00, RedwireType.BLUESTONE));
addComponent(new GateComponentWire(this, 0xFFF600, RedwireType.BLUESTONE).bind(right()));
addComponent(new GateComponentWire(this, 0xC600FF, RedwireType.BLUESTONE).bind(back()));
addComponent(new GateComponentWire(this, 0xFF0000, RedwireType.BLUESTONE).bind(left()));
addComponent(new GateComponentBorder(this, 0x7D7D7D));
w.setPower((byte) 255);
}
use of com.bluepowermod.part.gate.component.GateComponentTorch in project BluePower by Qmunity.
the class GatePulseFormer method initComponents.
@Override
public void initComponents() {
addComponent(t1 = new GateComponentTorch(this, 0x0000FF, 4 / 16D, true).setState(true));
addComponent(t2 = new GateComponentTorch(this, 0x6F00B5, 4 / 16D, true));
addComponent(t3 = new GateComponentTorch(this, 0x3e94dc, 5 / 16D, true));
addComponent(new GateComponentWire(this, 0xC600FF, RedwireType.BLUESTONE).bind(back()));
addComponent(w1 = new GateComponentWire(this, 0x18FF00, RedwireType.BLUESTONE).setPower((byte) 255));
addComponent(w2 = new GateComponentWire(this, 0x18DFA5, RedwireType.BLUESTONE));
addComponent(new GateComponentBorder(this, 0x7D7D7D));
}
use of com.bluepowermod.part.gate.component.GateComponentTorch in project BluePower by Qmunity.
the class GateRSLatch method initComponents.
@Override
protected void initComponents() {
addComponent(t1 = new GateComponentTorch(this, 0x0000FF, 4 / 16D, true));
addComponent(t2 = new GateComponentTorch(this, 0x3e94dc, 4 / 16D, true).setState(true));
addComponent(w1 = new GateComponentWire(this, 0xFF0000, RedwireType.BLUESTONE).setPower((byte) (mode == 3 || mode == 1 ? 255 : 0)));
addComponent(w2 = new GateComponentWire(this, 0xFFF600, RedwireType.BLUESTONE).setPower((byte) (mode == 2 || mode == 0 ? 255 : 0)));
addComponent(new GateComponentWire(this, 0xC600FF, RedwireType.BLUESTONE).bind(right()));
addComponent(new GateComponentWire(this, 0x00FF00, RedwireType.BLUESTONE).bind(left()));
addComponent(new GateComponentBorder(this, 0x7D7D7D));
}
use of com.bluepowermod.part.gate.component.GateComponentTorch in project BluePower by Qmunity.
the class GateSequencer method initComponents.
@Override
public void initComponents() {
addComponent(t1 = new GateComponentTorch(this, 0x23cecc, 3 / 16D, true));
addComponent(t2 = new GateComponentTorch(this, 0x0000FF, 3 / 16D, true));
addComponent(t3 = new GateComponentTorch(this, 0x3e94dc, 3 / 16D, true).setState(true));
addComponent(t4 = new GateComponentTorch(this, 0x6F00B5, 3 / 16D, true));
addComponent((p = new GateComponentPointer(this, 0xFFFF00, 7 / 16D, true)).setShouldSync(false).setState(true));
addComponent(new GateComponentBorder(this, 0x7D7D7D));
}
use of com.bluepowermod.part.gate.component.GateComponentTorch in project BluePower by Qmunity.
the class GateCounter method initComponents.
@Override
public void initComponents() {
addComponent(t1 = new GateComponentTorch(this, 0x0000FF, 4 / 16D, true).setState(false));
addComponent(t2 = new GateComponentTorch(this, 0x00c0ff, 4 / 16D, true).setState(true));
addComponent((p = new GateComponentPointer(this, 0xb220d1, 7 / 16D, true).setAngle(-0.5 - 0.1075)).setState(true));
addComponent(new GateComponentWire(this, 0xFFF600, RedwireType.BLUESTONE).bind(right()));
addComponent(new GateComponentWire(this, 0xFF0000, RedwireType.BLUESTONE).bind(left()));
addComponent(new GateComponentBorder(this, 0x7D7D7D));
addComponent(new GateComponentBorderDark(this, 0x4d4d4d));
}
Aggregations