Interface InputEvent
- All Superinterfaces:
Event
Fired when an
InputElement
's value is changed either by a player or
by invoking the InputElement.setValue(String)
method.-
Method Summary
Modifier and TypeMethodDescription@Nullable String
Get the new value of the input element@Nullable org.bukkit.entity.Player
Get the player that typed in the new input, will benull
, if this event was triggered by invoking theInputElement.setValue(String)
method.@Nullable String
Get the previous value of the input element@NotNull InputElement
Gets the node this event was called on.Methods inherited from interface com.juliewoolie.dom.event.Event
getCurrentTarget, getDocument, getPhase, getType, isBubbling, isCancellable, isCancelled, isComposed, isPropagationStopped, preventDefault, stopPropagation
-
Method Details
-
getTarget
Gets the node this event was called on. -
getNewValue
-
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 benull
, if this event was triggered by invoking theInputElement.setValue(String)
method.- Returns:
- Player, or
null
-