Package com.bergerkiller.bukkit.tc.actions

Examples of com.bergerkiller.bukkit.tc.actions.GroupActionWaitState.stop()


    if (info.getMode() != SignActionMode.NONE && info.hasRailedMember()) {
      if (info.isAction(SignActionType.GROUP_LEAVE) || (info.isAction(SignActionType.REDSTONE_CHANGE) && !info.isPowered())) {
        // Remove the wait state when the train leaves or the sign lost power to block
        GroupActionWaitState action = CommonUtil.tryCast(info.getGroup().getActions().getCurrentAction(), GroupActionWaitState.class);
        if (action != null) {
          action.stop();
        }
      } 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)) {
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.