Search in sources :

Example 1 with ItemAmountPipeSign

use of logisticspipes.pipes.signs.ItemAmountPipeSign in project LogisticsPipes by RS485.

the class ItemAmountSignGui method getContainer.

@Override
public DummyContainer getContainer(EntityPlayer player) {
    LogisticsTileGenericPipe pipe = getPipe(player.getEntityWorld());
    if (pipe == null || !(pipe.pipe instanceof CoreRoutedPipe)) {
        return null;
    }
    ItemAmountPipeSign sign = ((ItemAmountPipeSign) ((CoreRoutedPipe) pipe.pipe).getPipeSign(dir));
    DummyContainer dummy = new DummyContainer(player.inventory, sign.itemTypeInv);
    dummy.addDummySlot(0, 0, 0);
    dummy.addNormalSlotsForPlayerInventory(0, 0);
    return dummy;
}
Also used : DummyContainer(logisticspipes.utils.gui.DummyContainer) ItemAmountPipeSign(logisticspipes.pipes.signs.ItemAmountPipeSign) LogisticsTileGenericPipe(logisticspipes.pipes.basic.LogisticsTileGenericPipe) CoreRoutedPipe(logisticspipes.pipes.basic.CoreRoutedPipe)

Aggregations

CoreRoutedPipe (logisticspipes.pipes.basic.CoreRoutedPipe)1 LogisticsTileGenericPipe (logisticspipes.pipes.basic.LogisticsTileGenericPipe)1 ItemAmountPipeSign (logisticspipes.pipes.signs.ItemAmountPipeSign)1 DummyContainer (logisticspipes.utils.gui.DummyContainer)1