Search in sources :

Example 1 with GuiContainerBase

use of uk.co.qmunity.lib.client.gui.GuiContainerBase in project BluePower by Qmunity.

the class MessageSyncMachineBacklog method handleClientSide.

@Override
public void handleClientSide(EntityPlayer player) {
    TileEntity te = player.worldObj.getTileEntity(x, y, z);
    if (te instanceof TileMachineBase) {
        ((TileMachineBase) te).setBacklog(stacks);
        GuiContainerBase gui = (GuiContainerBase) ClientProxy.getOpenedGui();
        if (gui != null)
            gui.redraw();
    }
}
Also used : TileEntity(net.minecraft.tileentity.TileEntity) GuiContainerBase(uk.co.qmunity.lib.client.gui.GuiContainerBase) TileMachineBase(com.bluepowermod.tile.TileMachineBase)

Aggregations

TileMachineBase (com.bluepowermod.tile.TileMachineBase)1 TileEntity (net.minecraft.tileentity.TileEntity)1 GuiContainerBase (uk.co.qmunity.lib.client.gui.GuiContainerBase)1