Class PlayerUIInputTextEvent

java.lang.Object
net.risingworld.api.events.Event
net.risingworld.api.events.player.PlayerEvent
net.risingworld.api.events.player.ui.PlayerUIInputTextEvent

public final class PlayerUIInputTextEvent extends PlayerEvent
Called when a player enters a text into a textfield, or more precisely, once he either presses enter, or once the textfield loses the focus (i.e the player clicks somewhere else)
  • Method Details

    • getUITextField

      public UITextField getUITextField()
      Gets the text field element where the player has entered text.
      Returns:
      the text field.
    • getText

      public String getText()
      Gets the text the player has entered.
      Returns:
      the input.