Search in sources :

Example 1 with ProgWidgetLogistics

use of pneumaticCraft.common.progwidgets.ProgWidgetLogistics in project PneumaticCraft by MineMaarten.

the class ItemLogisticsDrone method addLogisticsProgram.

private void addLogisticsProgram(int x, int y, int z, List<IProgWidget> widgets) {
    ProgWidgetStart start = new ProgWidgetStart();
    start.setX(0);
    start.setY(0);
    widgets.add(start);
    ProgWidgetLogistics logistics = new ProgWidgetLogistics();
    logistics.setX(0);
    logistics.setY(11);
    widgets.add(logistics);
    ProgWidgetArea area = new ProgWidgetArea();
    area.setX(15);
    area.setY(11);
    area.x1 = x - 16;
    area.y1 = y - 16;
    area.z1 = z - 16;
    area.x2 = x + 16;
    area.y2 = y + 16;
    area.z2 = z + 16;
    widgets.add(area);
    TileEntityProgrammer.updatePuzzleConnections(widgets);
}
Also used : ProgWidgetArea(pneumaticCraft.common.progwidgets.ProgWidgetArea) ProgWidgetLogistics(pneumaticCraft.common.progwidgets.ProgWidgetLogistics) ProgWidgetStart(pneumaticCraft.common.progwidgets.ProgWidgetStart)

Aggregations

ProgWidgetArea (pneumaticCraft.common.progwidgets.ProgWidgetArea)1 ProgWidgetLogistics (pneumaticCraft.common.progwidgets.ProgWidgetLogistics)1 ProgWidgetStart (pneumaticCraft.common.progwidgets.ProgWidgetStart)1