Class MailEvent
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.MailEvent
- Direct Known Subclasses:
MailEvent.EditMail
,MailEvent.ReadMail
,MailEvent.SealMail
public abstract class MailEvent
extends net.neoforged.bus.api.Event
A class containing all the events pertaining to the
MailItem
- Since:
- 17/11/2022
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The event called when the text on a mail is editedstatic class
Event fired when a player interacts with the mail item and opens it to read (or edit) itstatic class
Event fired when a player seals mail -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
player
protected final net.minecraft.server.level.ServerPlayer player
-
-
Constructor Details
-
MailEvent
public MailEvent(@Nonnull net.minecraft.server.level.ServerPlayer player)
-
-
Method Details
-
getPlayer
@Nonnull public net.minecraft.server.level.ServerPlayer getPlayer()
-