Search in sources :

Example 6 with PacketUpdateTextfield

use of me.desht.pneumaticcraft.common.network.PacketUpdateTextfield in project pnc-repressurized by TeamPneumatic.

the class GuiSecurityStationInventory method onKeyTyped.

@Override
public void onKeyTyped(IGuiWidget widget) {
    te.setText(0, sharedUserTextField.getText());
    NetworkHandler.sendToServer(new PacketUpdateTextfield(te, 0));
}
Also used : PacketUpdateTextfield(me.desht.pneumaticcraft.common.network.PacketUpdateTextfield)

Example 7 with PacketUpdateTextfield

use of me.desht.pneumaticcraft.common.network.PacketUpdateTextfield in project pnc-repressurized by TeamPneumatic.

the class GuiSentryTurret method mouseClicked.

@Override
protected void mouseClicked(int mouseX, int mouseY, int mouseButton) throws IOException {
    super.mouseClicked(mouseX, mouseY, mouseButton);
    if (!entityFilter.isFocused()) {
        te.setText(0, entityFilter.getText());
        NetworkHandler.sendToServer(new PacketUpdateTextfield(te, 0));
    }
}
Also used : PacketUpdateTextfield(me.desht.pneumaticcraft.common.network.PacketUpdateTextfield)

Example 8 with PacketUpdateTextfield

use of me.desht.pneumaticcraft.common.network.PacketUpdateTextfield in project pnc-repressurized by TeamPneumatic.

the class GuiSentryTurret method onGuiClosed.

@Override
public void onGuiClosed() {
    super.onGuiClosed();
    te.setText(0, entityFilter.getText());
    NetworkHandler.sendToServer(new PacketUpdateTextfield(te, 0));
}
Also used : PacketUpdateTextfield(me.desht.pneumaticcraft.common.network.PacketUpdateTextfield)

Aggregations

PacketUpdateTextfield (me.desht.pneumaticcraft.common.network.PacketUpdateTextfield)8 IProgWidget (me.desht.pneumaticcraft.common.progwidgets.IProgWidget)2 ItemStack (net.minecraft.item.ItemStack)2 Point (java.awt.Point)1 ArrayList (java.util.ArrayList)1 GuiScreen (net.minecraft.client.gui.GuiScreen)1