Search in sources :

Example 11 with GateComponentTorch

use of com.bluepowermod.part.gate.component.GateComponentTorch in project BluePower by Qmunity.

the class GateXnor method initComponents.

@Override
protected void initComponents() {
    addComponent(t1 = new GateComponentTorch(this, 0x0000FF, 4 / 16D, true));
    addComponent(t2 = new GateComponentTorch(this, 0x6F00B5, 4 / 16D, true));
    addComponent(t3 = new GateComponentTorch(this, 0x6eade7, 4 / 16D, true).setState(true));
    addComponent(t4 = new GateComponentTorch(this, 0x3e94dc, 5 / 16D, true).setState(true));
    addComponent(w2 = new GateComponentWire(this, 0x18FF00, RedwireType.BLUESTONE));
    addComponent(new GateComponentWire(this, 0xFFF600, RedwireType.BLUESTONE).bind(right()));
    addComponent(new GateComponentWire(this, 0xFF0000, RedwireType.BLUESTONE).bind(left()));
    addComponent(w1 = new GateComponentWire(this, 0x18dfa5, RedwireType.BLUESTONE).setPower((byte) 255));
    addComponent(new GateComponentBorder(this, 0x7D7D7D));
}
Also used : GateComponentWire(com.bluepowermod.part.gate.component.GateComponentWire) GateComponentTorch(com.bluepowermod.part.gate.component.GateComponentTorch) GateComponentBorder(com.bluepowermod.part.gate.component.GateComponentBorder)

Example 12 with GateComponentTorch

use of com.bluepowermod.part.gate.component.GateComponentTorch in project BluePower by Qmunity.

the class GateStateCell method initComponents.

@Override
public void initComponents() {
    addComponent(t1 = new GateComponentPointer(this, 0x0000FF, 7 / 16D, true).setAngle(0.75));
    addComponent(t2 = new GateComponentTorch(this, 0x6F00B5, 4 / 16D, true).setState(false));
    addComponent(w1 = new GateComponentWire(this, 0x18FF00, RedwireType.BLUESTONE).setPower((byte) 255));
    addComponent(w2 = new GateComponentWire(this, 0x61a11d, RedwireType.BLUESTONE).setPower((byte) 255));
    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(chip = new GateComponentSiliconChip(this, 0xd6ab17));
    addComponent(new GateComponentBorder(this, 0x7D7D7D));
}
Also used : GateComponentSiliconChip(com.bluepowermod.part.gate.component.GateComponentSiliconChip) GateComponentWire(com.bluepowermod.part.gate.component.GateComponentWire) GateComponentPointer(com.bluepowermod.part.gate.component.GateComponentPointer) GateComponentTorch(com.bluepowermod.part.gate.component.GateComponentTorch) GateComponentBorder(com.bluepowermod.part.gate.component.GateComponentBorder)

Example 13 with GateComponentTorch

use of com.bluepowermod.part.gate.component.GateComponentTorch in project BluePower by Qmunity.

the class GateXor method initComponents.

@Override
protected void initComponents() {
    addComponent(t1 = new GateComponentTorch(this, 0x0000FF, 4 / 16D, true));
    addComponent(t2 = new GateComponentTorch(this, 0x6F00B5, 4 / 16D, true));
    addComponent(t3 = new GateComponentTorch(this, 0x6eade7, 4 / 16D, true).setState(true));
    addComponent(new GateComponentWire(this, 0x18FF00, RedwireType.BLUESTONE).bind(front()));
    addComponent(new GateComponentWire(this, 0xFFF600, RedwireType.BLUESTONE).bind(right()));
    addComponent(new GateComponentWire(this, 0xFF0000, RedwireType.BLUESTONE).bind(left()));
    addComponent(w = new GateComponentWire(this, 0x18dfa5, RedwireType.BLUESTONE).setPower((byte) 255));
    addComponent(new GateComponentBorder(this, 0x7D7D7D));
}
Also used : GateComponentWire(com.bluepowermod.part.gate.component.GateComponentWire) GateComponentTorch(com.bluepowermod.part.gate.component.GateComponentTorch) GateComponentBorder(com.bluepowermod.part.gate.component.GateComponentBorder)

Example 14 with GateComponentTorch

use of com.bluepowermod.part.gate.component.GateComponentTorch in project BluePower by Qmunity.

the class GateNor method initComponents.

@Override
public void initComponents() {
    t = new GateComponentTorch(this, 0x0000FF, 4 / 16D, true);
    t.setState(true);
    addComponent(t);
    addComponent(new GateComponentWire(this, 0x18FF00, RedwireType.BLUESTONE).bind(front()));
    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));
}
Also used : GateComponentWire(com.bluepowermod.part.gate.component.GateComponentWire) GateComponentTorch(com.bluepowermod.part.gate.component.GateComponentTorch) GateComponentBorder(com.bluepowermod.part.gate.component.GateComponentBorder)

Example 15 with GateComponentTorch

use of com.bluepowermod.part.gate.component.GateComponentTorch in project BluePower by Qmunity.

the class GateNot method initComponents.

@Override
protected void initComponents() {
    addComponent(t = new GateComponentTorch(this, 0x0000FF, 4 / 16D, true).setState(true));
    addComponent(new GateComponentWire(this, 0x18FF00, RedwireType.BLUESTONE).bind(front()));
    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));
}
Also used : GateComponentWire(com.bluepowermod.part.gate.component.GateComponentWire) GateComponentTorch(com.bluepowermod.part.gate.component.GateComponentTorch) GateComponentBorder(com.bluepowermod.part.gate.component.GateComponentBorder)

Aggregations

GateComponentBorder (com.bluepowermod.part.gate.component.GateComponentBorder)21 GateComponentTorch (com.bluepowermod.part.gate.component.GateComponentTorch)21 GateComponentWire (com.bluepowermod.part.gate.component.GateComponentWire)20 GateComponentPointer (com.bluepowermod.part.gate.component.GateComponentPointer)4 GateComponentSiliconChip (com.bluepowermod.part.gate.component.GateComponentSiliconChip)2 GateComponentBorderDark (com.bluepowermod.part.gate.component.GateComponentBorderDark)1 GateComponentLever (com.bluepowermod.part.gate.component.GateComponentLever)1 GateComponentQuartzResonator (com.bluepowermod.part.gate.component.GateComponentQuartzResonator)1