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