Examples of ProgWidgetArea


Examples of pneumaticCraft.common.progwidgets.ProgWidgetArea

            addWidget(radioButton);
            radioButtons.add(radioButton);
            radioButton.otherChoices = radioButtons;
        }
        if(invSearchGui != null) {
            ProgWidgetArea area = (ProgWidgetArea)widget;
            ChunkPosition pos = invSearchGui.getSearchStack() != null ? ItemGPSTool.getGPSLocation(invSearchGui.getSearchStack()) : null;
            if(pos != null) {
                if(pointSearched == 0) {
                    area.x1 = pos.chunkPosX;
                    area.y1 = pos.chunkPosY;
View Full Code Here

Examples of pneumaticCraft.common.progwidgets.ProgWidgetArea

    @Override
    public void actionPerformed(GuiButton button){
        if(button.id == 0 || button.id == 1) {
            invSearchGui = new GuiInventorySearcher(FMLClientHandler.instance().getClient().thePlayer);
            ProgWidgetArea area = (ProgWidgetArea)widget;
            ItemStack gps = new ItemStack(Itemss.GPSTool);
            if(button.id == 0) {
                ItemGPSTool.setGPSLocation(gps, area.x1, area.y1, area.z1);
            } else {
                ItemGPSTool.setGPSLocation(gps, area.x2, area.y2, area.z2);
View Full Code Here

Examples of pneumaticCraft.common.progwidgets.ProgWidgetArea

                type = t;
                break;
            }
        }
        if(type == null) throw new IllegalArgumentException("Invalid area type: " + areaType);
        ProgWidgetArea helperWidget = new ProgWidgetArea();
        helperWidget.x1 = x1;
        helperWidget.y1 = y1;
        helperWidget.z1 = z1;
        helperWidget.x2 = x2;
        helperWidget.y2 = y2;
        helperWidget.z2 = z2;
        helperWidget.type = type;
        return helperWidget.getArea();
    }
View Full Code Here

Examples of pneumaticCraft.common.progwidgets.ProgWidgetArea

        }
        return livingEntities;
    }

    private ProgWidgetArea getEntityAreaWidget(){
        ProgWidgetArea widget = new ProgWidgetArea();
        ChunkPosition minPos = getMinPos();
        ChunkPosition maxPos = getMaxPos();
        widget.x1 = minPos.chunkPosX;
        widget.y1 = minPos.chunkPosY;
        widget.z1 = minPos.chunkPosZ;
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.