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