Search in sources :

Example 6 with PipeItemsProviderLogistics

use of logisticspipes.pipes.PipeItemsProviderLogistics in project LogisticsPipes by RS485.

the class ProviderPipeNextModePacket 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;
    }
    final PipeItemsProviderLogistics providerpipe = (PipeItemsProviderLogistics) pipe.pipe;
    providerpipe.nextExtractionMode();
    MainProxy.sendPacketToPlayer(PacketHandler.getPacket(ProviderPipeMode.class).setInteger(providerpipe.getExtractionMode().ordinal()).setPosX(getPosX()).setPosY(getPosY()).setPosZ(getPosZ()), player);
}
Also used : LogisticsTileGenericPipe(logisticspipes.pipes.basic.LogisticsTileGenericPipe) ProviderPipeMode(logisticspipes.network.packets.modules.ProviderPipeMode) PipeItemsProviderLogistics(logisticspipes.pipes.PipeItemsProviderLogistics)

Aggregations

PipeItemsProviderLogistics (logisticspipes.pipes.PipeItemsProviderLogistics)6 LogisticsTileGenericPipe (logisticspipes.pipes.basic.LogisticsTileGenericPipe)6 GuiProviderPipe (logisticspipes.gui.GuiProviderPipe)2 PipeBlockRequestTable (logisticspipes.pipes.PipeBlockRequestTable)2 PipeFluidBasic (logisticspipes.pipes.PipeFluidBasic)2 PipeFluidRequestLogistics (logisticspipes.pipes.PipeFluidRequestLogistics)2 PipeFluidSatellite (logisticspipes.pipes.PipeFluidSatellite)2 PipeFluidSupplierMk2 (logisticspipes.pipes.PipeFluidSupplierMk2)2 PipeItemsFirewall (logisticspipes.pipes.PipeItemsFirewall)2 PipeItemsFluidSupplier (logisticspipes.pipes.PipeItemsFluidSupplier)2 PipeItemsInvSysConnector (logisticspipes.pipes.PipeItemsInvSysConnector)2 PipeItemsRequestLogisticsMk2 (logisticspipes.pipes.PipeItemsRequestLogisticsMk2)2 PipeItemsSatelliteLogistics (logisticspipes.pipes.PipeItemsSatelliteLogistics)2 PipeItemsSystemDestinationLogistics (logisticspipes.pipes.PipeItemsSystemDestinationLogistics)2 PipeItemsSystemEntranceLogistics (logisticspipes.pipes.PipeItemsSystemEntranceLogistics)2 IInventory (net.minecraft.inventory.IInventory)2 TileEntity (net.minecraft.tileentity.TileEntity)2 GuiFirewall (logisticspipes.gui.GuiFirewall)1 GuiFluidBasic (logisticspipes.gui.GuiFluidBasic)1 GuiFluidSupplierMk2Pipe (logisticspipes.gui.GuiFluidSupplierMk2Pipe)1