Package com.sk89q.craftbook.access

Examples of com.sk89q.craftbook.access.Action


        long currentTick = world.getTime();

        ArrayList<Action> actionQueue = new ArrayList<Action>();

        for (Iterator<Action> it = delayedActions.iterator(); it.hasNext(); ) {
            Action action = it.next();
            if (action.getRunAt() <= currentTick) {
                it.remove();
                actionQueue.add(action);
            }
        }

        for (Action action : actionQueue) {
            try {
                action.run();
            } catch (Throwable t) {
                t.printStackTrace();
            }
        }
    }
View Full Code Here

TOP

Related Classes of com.sk89q.craftbook.access.Action

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.