@MightOccurAsync public interface NucleusMailEvent extends org.spongepowered.api.event.Event, org.spongepowered.api.event.Cancellable
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage()
The message that was sent.
|
org.spongepowered.api.entity.living.player.User |
getRecipient()
The recipient of the mail.
|
java.util.Optional<org.spongepowered.api.entity.living.player.User> |
getSender()
The sender of the mail.
|
java.util.Optional<org.spongepowered.api.entity.living.player.User> getSender()
Optional.empty()
, this means it was some server process.org.spongepowered.api.entity.living.player.User getRecipient()
java.lang.String getMessage()