Search in sources :

Example 1 with IAreaProvider

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

the class TileEntityProgrammer method previewArea.

public boolean previewArea(int widgetX, int widgetY) {
    for (IProgWidget w : progWidgets) {
        if (w.getX() == widgetX && w.getY() == widgetY && w instanceof IAreaProvider) {
            Set<BlockPos> area = new HashSet<BlockPos>();
            ((IAreaProvider) w).getArea(area);
            AreaShowManager.getInstance().showArea(area, 0x9000FF00, this);
        }
    }
    return true;
}
Also used : IAreaProvider(me.desht.pneumaticcraft.common.progwidgets.IAreaProvider) IProgWidget(me.desht.pneumaticcraft.common.progwidgets.IProgWidget) BlockPos(net.minecraft.util.math.BlockPos)

Aggregations

IAreaProvider (me.desht.pneumaticcraft.common.progwidgets.IAreaProvider)1 IProgWidget (me.desht.pneumaticcraft.common.progwidgets.IProgWidget)1 BlockPos (net.minecraft.util.math.BlockPos)1