Klasse PlayerUITextFieldChangeEvent
java.lang.Object
net.risingworld.api.events.Event
net.risingworld.api.events.player.PlayerEvent
net.risingworld.api.events.player.ui.PlayerUITextFieldChangeEvent
Called when a player changes a
If you want to get an event when the player unfocuses the text field (i.e clicks somewhere outside the text field) or when he presses enter, use
UITextField
, i.e when he enters or removes any characters to/from the text field.
This event is triggered for every character that is added or removed. If you want to get an event when the player unfocuses the text field (i.e clicks somewhere outside the text field) or when he presses enter, use
PlayerUIInputTextEvent
instead- Siehe auch:
-
Feldübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungGets the new text field value (after the player entered/removed a character).Gets the previous text field value (before the player entered/removed a character).Gets the text field element that was changed.Von Klasse geerbte Methoden net.risingworld.api.events.player.PlayerEvent
getPlayer
-
Methodendetails
-
getUITextField
Gets the text field element that was changed.- Gibt zurück:
- the text field.
-
getOldText
Gets the previous text field value (before the player entered/removed a character).- Gibt zurück:
- the previous text field value.
-
getNewText
Gets the new text field value (after the player entered/removed a character).- Gibt zurück:
- the new/current text field value.
-