Package com.sk89q.craftbook.util.RedstoneUtil

Examples of com.sk89q.craftbook.util.RedstoneUtil.Power


     */
    private Power isActive(Block block) {

        boolean isWired = false;
        for (BlockFace face : powerSupplyOptions) {
            Power p = RedstoneUtil.isPowered(block, face);
            switch (p) {
                case ON:
                    return Power.ON;
                case NA:
                    break;
View Full Code Here


        // validate
        if (!blocks.matches(getMaterial())) return;
        if (!blocks.matches("dispenser")) return;

        // detect intentions
        Power pow = isActive(blocks);
        boolean inf = "inf".equalsIgnoreCase(blocks.getSign().getLine(2));

        if(inf) {

            CartType type = CartType.fromString(blocks.getSign().getLine(0));
View Full Code Here

TOP

Related Classes of com.sk89q.craftbook.util.RedstoneUtil.Power

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.