Examples of centerTrain()


Examples of com.bergerkiller.bukkit.tc.Station.centerTrain()

      group.getActions().clear();   
      BlockFace trainDirection = station.getNextDirection().getDirection(info.getFacing(), info.getMember().getDirection());
      if (station.getNextDirection() != Direction.NONE) {
        // Actual launching here
        if (station.hasDelay()) {
          station.centerTrain();
          station.waitTrain(station.getDelay());
        } else if (!info.getMember().isDirectionTo(trainDirection)) {
          // Order the train to center prior to launching again
          station.centerTrain();
        }
View Full Code Here

Examples of com.bergerkiller.bukkit.tc.Station.centerTrain()

        if (station.hasDelay()) {
          station.centerTrain();
          station.waitTrain(station.getDelay());
        } else if (!info.getMember().isDirectionTo(trainDirection)) {
          // Order the train to center prior to launching again
          station.centerTrain();
        }
        station.launchTo(trainDirection, station.getLength());
      } else {
        station.centerTrain();
        station.waitTrain(Long.MAX_VALUE);
View Full Code Here

Examples of com.bergerkiller.bukkit.tc.Station.centerTrain()

          // Order the train to center prior to launching again
          station.centerTrain();
        }
        station.launchTo(trainDirection, station.getLength());
      } else {
        station.centerTrain();
        station.waitTrain(Long.MAX_VALUE);
      }
    } else {
      //Launch
      group.getActions().clear();
View Full Code Here

Examples of com.bergerkiller.bukkit.tc.Station.centerTrain()

      group.getActions().clear();
      MinecartMember<?> head = group.head();

      if (station.hasDelay() || (head.isMoving() && !info.getMember().isDirectionTo(station.getInstruction()))) {
        //Reversing or has delay, need to center it in the middle first
        station.centerTrain();
      }
      if (station.hasDelay()) {
        station.waitTrain(station.getDelay());
      }
      station.launchTo(station.getInstruction(), station.getLength());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.