Search in sources :

Example 1 with GuiRemote

use of pneumaticCraft.client.gui.GuiRemote in project PneumaticCraft by MineMaarten.

the class PacketSetGlobalVariable method handleClientSide.

@Override
@SideOnly(Side.CLIENT)
public void handleClientSide(PacketSetGlobalVariable message, EntityPlayer player) {
    handleServerSide(message, player);
    GuiScreen screen = Minecraft.getMinecraft().currentScreen;
    if (screen instanceof GuiRemote) {
        ((GuiRemote) screen).onGlobalVariableChange(message.varName);
    }
}
Also used : GuiRemote(pneumaticCraft.client.gui.GuiRemote) GuiScreen(net.minecraft.client.gui.GuiScreen) SideOnly(cpw.mods.fml.relauncher.SideOnly)

Aggregations

SideOnly (cpw.mods.fml.relauncher.SideOnly)1 GuiScreen (net.minecraft.client.gui.GuiScreen)1 GuiRemote (pneumaticCraft.client.gui.GuiRemote)1