@MightOccurAsync public static interface NucleusChangeNicknameEvent.Pre extends NucleusChangeNicknameEvent, org.spongepowered.api.event.Cancellable
NucleusChangeNicknameEvent.Post, NucleusChangeNicknameEvent.Pre
Modifier and Type | Method and Description |
---|---|
Optional<org.spongepowered.api.text.Text> |
getNickname()
The new nickname, if any, for the
getTargetUser() |
Optional<org.spongepowered.api.text.Text> |
getPreviousNickname()
The previous nickname for the
getTargetUser() |
org.spongepowered.api.entity.living.player.User |
getTargetUser()
The use whose nickname was changed.
|
getNewNickname
org.spongepowered.api.entity.living.player.User getTargetUser()
getTargetUser
in interface org.spongepowered.api.event.user.TargetUserEvent
User
Optional<org.spongepowered.api.text.Text> getPreviousNickname()
getTargetUser()
getPreviousNickname
in interface NucleusChangeNicknameEvent
Optional<org.spongepowered.api.text.Text> getNickname()
getTargetUser()
getNickname
in interface NucleusChangeNicknameEvent