Search in sources :

Example 6 with PacketProgrammerUpdate

use of pneumaticCraft.common.network.PacketProgrammerUpdate in project PneumaticCraft by MineMaarten.

the class GuiProgWidgetOptionBase method keyTyped.

@Override
public void keyTyped(char key, int keyCode) {
    super.keyTyped(key, keyCode);
    if (keyCode == 1) {
        onGuiClosed();
        if (guiProgrammer != null) {
            NetworkHandler.sendToServer(new PacketProgrammerUpdate(guiProgrammer.te));
            mc.displayGuiScreen(guiProgrammer);
        }
    }
}
Also used : PacketProgrammerUpdate(pneumaticCraft.common.network.PacketProgrammerUpdate)

Aggregations

PacketProgrammerUpdate (pneumaticCraft.common.network.PacketProgrammerUpdate)6 IProgWidget (pneumaticCraft.common.progwidgets.IProgWidget)4 Point (java.awt.Point)3 PacketGuiButton (pneumaticCraft.common.network.PacketGuiButton)3 HashMap (java.util.HashMap)1 Map (java.util.Map)1 GuiButton (net.minecraft.client.gui.GuiButton)1 NBTTagCompound (net.minecraft.nbt.NBTTagCompound)1 ChunkPosition (net.minecraft.world.ChunkPosition)1 GuiCheckBox (pneumaticCraft.client.gui.widget.GuiCheckBox)1 GuiRadioButton (pneumaticCraft.client.gui.widget.GuiRadioButton)1 WidgetTextField (pneumaticCraft.client.gui.widget.WidgetTextField)1 ProgWidgetArea (pneumaticCraft.common.progwidgets.ProgWidgetArea)1 ProgWidgetCoordinate (pneumaticCraft.common.progwidgets.ProgWidgetCoordinate)1 ProgWidgetCoordinateOperator (pneumaticCraft.common.progwidgets.ProgWidgetCoordinateOperator)1 ProgWidgetStart (pneumaticCraft.common.progwidgets.ProgWidgetStart)1