Search in sources :

Example 1 with GuiProviderPipe

use of logisticspipes.gui.GuiProviderPipe in project LogisticsPipes by RS485.

the class ProviderPipeInclude method processPacket.

@Override
public void processPacket(EntityPlayer player) {
    final LogisticsTileGenericPipe pipe = this.getPipe(player.worldObj);
    if (pipe == null) {
        return;
    }
    if (!(pipe.pipe instanceof PipeItemsProviderLogistics)) {
        return;
    }
    ((PipeItemsProviderLogistics) pipe.pipe).setFilterExcluded(getInteger() == 1);
    if (FMLClientHandler.instance().getClient().currentScreen instanceof GuiProviderPipe) {
        ((GuiProviderPipe) FMLClientHandler.instance().getClient().currentScreen).refreshInclude();
    }
}
Also used : LogisticsTileGenericPipe(logisticspipes.pipes.basic.LogisticsTileGenericPipe) GuiProviderPipe(logisticspipes.gui.GuiProviderPipe) PipeItemsProviderLogistics(logisticspipes.pipes.PipeItemsProviderLogistics)

Aggregations

GuiProviderPipe (logisticspipes.gui.GuiProviderPipe)1 PipeItemsProviderLogistics (logisticspipes.pipes.PipeItemsProviderLogistics)1 LogisticsTileGenericPipe (logisticspipes.pipes.basic.LogisticsTileGenericPipe)1