Search in sources :

Example 1 with GuiCircuitTable

use of com.bluepowermod.client.gui.GuiCircuitTable in project BluePower by Qmunity.

the class ContainerCircuitTable method updateProgressBar.

@Override
@SideOnly(Side.CLIENT)
public void updateProgressBar(int p_75137_1_, int p_75137_2_) {
    circuitTable.slotsScrolled = p_75137_2_;
    GuiScreen gui = Minecraft.getMinecraft().currentScreen;
    if (gui instanceof GuiCircuitTable) {
        ((GuiCircuitTable) gui).updateScrollbar(circuitTable.slotsScrolled);
    }
}
Also used : GuiCircuitTable(com.bluepowermod.client.gui.GuiCircuitTable) GuiScreen(net.minecraft.client.gui.GuiScreen) SideOnly(cpw.mods.fml.relauncher.SideOnly)

Aggregations

GuiCircuitTable (com.bluepowermod.client.gui.GuiCircuitTable)1 SideOnly (cpw.mods.fml.relauncher.SideOnly)1 GuiScreen (net.minecraft.client.gui.GuiScreen)1