Interface InputEvent

All Superinterfaces:
Event

public interface InputEvent extends Event
Fired when an InputElement's value is changed either by a player or by invoking the InputElement.setValue(String) method.
  • Method Details

    • getTarget

      @NotNull @NotNull InputElement getTarget()
      Gets the node this event was called on.
      Specified by:
      getTarget in interface Event
      Returns:
      Event target
    • getNewValue

      @Nullable @Nullable String getNewValue()
      Get the new value of the input element
      Returns:
      New value
    • getPreviousValue

      @Nullable @Nullable String getPreviousValue()
      Get the previous value of the input element
      Returns:
      Previous value
    • getPlayer

      @Nullable @Nullable org.bukkit.entity.Player getPlayer()
      Get the player that typed in the new input, will be null, if this event was triggered by invoking the InputElement.setValue(String) method.
      Returns:
      Player, or null