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;
}
Aggregations