Package buildcraft.transport.statements

Examples of buildcraft.transport.statements.TriggerClockTimer


        triggerPipeWireInactive[wire.ordinal()] = new TriggerPipeSignal(false, wire);
        actionPipeWire[wire.ordinal()] = new ActionSignalOutput(wire);
      }

      for (Time time : TriggerClockTimer.Time.VALUES) {
        triggerTimer[time.ordinal()] = new TriggerClockTimer(time);
      }

      for (int level = 0; level < triggerRedstoneLevel.length; level++) {
        triggerRedstoneLevel[level] = new TriggerRedstoneFaderInput(level + 1);
        actionRedstoneLevel[level] = new ActionRedstoneFaderOutput(level + 1);
View Full Code Here


    }

    @Override
    public boolean isTriggerActive(IStatement trigger, IStatementParameter[] parameters) {
      if (trigger instanceof TriggerClockTimer) {
        TriggerClockTimer timerTrigger = (TriggerClockTimer) trigger;
        return timers[timerTrigger.time.ordinal()].isActive();
      }
      return super.isTriggerActive(trigger, parameters);
    }
View Full Code Here

TOP

Related Classes of buildcraft.transport.statements.TriggerClockTimer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.