Search in sources :

Example 1 with ProgWidgetLogistics

use of me.desht.pneumaticcraft.common.progwidgets.ProgWidgetLogistics in project pnc-repressurized by TeamPneumatic.

the class ItemLogisticsDrone method addLogisticsProgram.

private void addLogisticsProgram(BlockPos pos, 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 = pos.getX() - 16;
    area.y1 = pos.getY() - 16;
    area.z1 = pos.getZ() - 16;
    area.x2 = pos.getX() + 16;
    area.y2 = pos.getY() + 16;
    area.z2 = pos.getZ() + 16;
    widgets.add(area);
    TileEntityProgrammer.updatePuzzleConnections(widgets);
}
Also used : ProgWidgetArea(me.desht.pneumaticcraft.common.progwidgets.ProgWidgetArea) ProgWidgetLogistics(me.desht.pneumaticcraft.common.progwidgets.ProgWidgetLogistics) ProgWidgetStart(me.desht.pneumaticcraft.common.progwidgets.ProgWidgetStart)

Aggregations

ProgWidgetArea (me.desht.pneumaticcraft.common.progwidgets.ProgWidgetArea)1 ProgWidgetLogistics (me.desht.pneumaticcraft.common.progwidgets.ProgWidgetLogistics)1 ProgWidgetStart (me.desht.pneumaticcraft.common.progwidgets.ProgWidgetStart)1