Search in sources :

Example 1 with GuiStatistics

use of logisticspipes.gui.GuiStatistics in project LogisticsPipes by RS485.

the class StatisticsGui method getClientGui.

@Override
public Object getClientGui(EntityPlayer player) {
    LogisticsStatisticsTileEntity tile = this.getTile(player.getEntityWorld(), LogisticsStatisticsTileEntity.class);
    if (tile == null) {
        return null;
    }
    tile.tasks = trackingList;
    GuiStatistics gui = new GuiStatistics(tile);
    gui.inventorySlots = new DummyContainer(player.inventory, null);
    return gui;
}
Also used : LogisticsStatisticsTileEntity(logisticspipes.blocks.stats.LogisticsStatisticsTileEntity) DummyContainer(logisticspipes.utils.gui.DummyContainer) GuiStatistics(logisticspipes.gui.GuiStatistics)

Aggregations

LogisticsStatisticsTileEntity (logisticspipes.blocks.stats.LogisticsStatisticsTileEntity)1 GuiStatistics (logisticspipes.gui.GuiStatistics)1 DummyContainer (logisticspipes.utils.gui.DummyContainer)1