Search in sources :

Example 1 with LogisticsGuiModule

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);
}
Also used : LogisticsGuiModule(logisticspipes.modules.abstractmodules.LogisticsGuiModule) PipeLogisticsChassi(logisticspipes.pipes.PipeLogisticsChassi) LogisticsTileGenericPipe(logisticspipes.pipes.basic.LogisticsTileGenericPipe)

Aggregations

LogisticsGuiModule (logisticspipes.modules.abstractmodules.LogisticsGuiModule)1 PipeLogisticsChassi (logisticspipes.pipes.PipeLogisticsChassi)1 LogisticsTileGenericPipe (logisticspipes.pipes.basic.LogisticsTileGenericPipe)1