Search in sources :

Example 1 with IPartTicking

use of uk.co.qmunity.lib.part.IPartTicking in project BluePower by Qmunity.

the class GateIntegratedCircuit method tick.

@Override
public void tick() {
    loadWorld();
    for (IIntegratedCircuitPart part : allParts()) if (part instanceof IPartTicking)
        ((IPartTicking) part).update();
    unloadWorld();
}
Also used : IIntegratedCircuitPart(com.bluepowermod.api.gate.IIntegratedCircuitPart) IPartTicking(uk.co.qmunity.lib.part.IPartTicking)

Aggregations

IIntegratedCircuitPart (com.bluepowermod.api.gate.IIntegratedCircuitPart)1 IPartTicking (uk.co.qmunity.lib.part.IPartTicking)1