Package com.bergerkiller.bukkit.tc

Examples of com.bergerkiller.bukkit.tc.Direction


        signcounter.set(1);
        currentcount = 0;
      }
     
      int counter = 0;
      Direction dir = Direction.NONE;
      for (DirectionStatement stat : statements) {
        if ((stat.hasNumber() && (counter += stat.number) > currentcount)
            || (doCart && stat.has(info, info.getMember()))
            || (doTrain && stat.has(info, info.getGroup()))) {
View Full Code Here


        }
      } else if (info.isPowered() && info.isAction(SignActionType.GROUP_ENTER, SignActionType.REDSTONE_CHANGE, SignActionType.MEMBER_MOVE)) {
        // Set the next direction based on the sign
        // Don't do this in the move event as that one fires too often (performance issue)
        if (!info.isAction(SignActionType.MEMBER_MOVE)) {
          Direction direction = Direction.parse(info.getLine(3));
          if (direction != Direction.NONE) {
            long delay = ParseUtil.parseTime(info.getLine(2));
            BlockFace trainDirection = direction.getDirection(info.getFacing(), info.getCartDirection());
            info.getGroup().getActions().clear();
            info.getGroup().getActions().addActionWaitState();
            if (delay > 0) {
              info.getGroup().getActions().addActionWait(delay);
            }
View Full Code Here

TOP

Related Classes of com.bergerkiller.bukkit.tc.Direction

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.