Search in sources :

Example 1 with LogicController

use of logisticspipes.logic.LogicController in project LogisticsPipes by RS485.

the class LogicControllerGuiProvider method getContainer.

@Override
public Container getContainer(EntityPlayer player) {
    TileEntity pipe = this.getTile(player.getEntityWorld(), TileEntity.class);
    if (pipe instanceof ILogicControllerTile) {
        LogicController controller = ((ILogicControllerTile) pipe).getLogicController();
        DummyContainer dummy = new DummyContainer(player.inventory, null);
        dummy.addNormalSlotsForPlayerInventory(50, 190);
        return dummy;
    }
    return null;
}
Also used : TileEntity(net.minecraft.tileentity.TileEntity) DummyContainer(logisticspipes.utils.gui.DummyContainer) ILogicControllerTile(logisticspipes.logic.interfaces.ILogicControllerTile) LogicController(logisticspipes.logic.LogicController)

Aggregations

LogicController (logisticspipes.logic.LogicController)1 ILogicControllerTile (logisticspipes.logic.interfaces.ILogicControllerTile)1 DummyContainer (logisticspipes.utils.gui.DummyContainer)1 TileEntity (net.minecraft.tileentity.TileEntity)1