Package com.bergerkiller.bukkit.tc.controller.components

Examples of com.bergerkiller.bukkit.tc.controller.components.ActionTrackerGroup


   * and toggle the station levers on.
   *
   * @param delay to wait, use 0 for no delay, MAX_VALUE to wait forever.
   */
  public void waitTrain(long delay) {
    ActionTrackerGroup actions = info.getGroup().getActions();
    if (TrainCarts.playSoundAtStation) {
      actions.addActionSizzle();
    }
    if (TrainCarts.refillAtStations) {
      actions.addActionRefill();
    }
    actions.addAction(new BlockActionSetLevers(info.getAttachedBlock(), true));
    if (delay == Long.MAX_VALUE) {
      actions.addActionWaitForever();
    } else if (delay > 0) {
      actions.addActionWait(delay);
    }
  }
View Full Code Here

TOP

Related Classes of com.bergerkiller.bukkit.tc.controller.components.ActionTrackerGroup

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.