use of pneumaticCraft.common.progwidgets.IProgWidget in project PneumaticCraft by MineMaarten.
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<ChunkPosition> area = new HashSet<ChunkPosition>();
((IAreaProvider) w).getArea(area);
AreaShowManager.getInstance().showArea(area, 0x00FF00, this);
}
}
return true;
}
Aggregations