use of logisticspipes.modules.abstractmodules.LogisticsGuiModule in project LogisticsPipes by RS485.
the class ChassisGUI method processPacket.
@Override
public void processPacket(EntityPlayer player) {
final LogisticsTileGenericPipe pipe = getPipe(player.worldObj);
if (pipe == null || !(pipe.pipe instanceof PipeLogisticsChassi)) {
return;
}
final PipeLogisticsChassi chassisPipe = (PipeLogisticsChassi) pipe.pipe;
if (!(chassisPipe.getLogisticsModule().getSubModule(getButtonID()) instanceof LogisticsGuiModule)) {
return;
}
((LogisticsGuiModule) chassisPipe.getLogisticsModule().getSubModule(getButtonID())).getPipeGuiProviderForModule().setPosX(getPosX()).setPosY(getPosY()).setPosZ(getPosZ()).open(player);
}
Aggregations