Class MailEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.MailEvent
- Direct Known Subclasses:
MailEvent.EditMail
,MailEvent.ReadMail
,MailEvent.SealMail
public class MailEvent
extends net.minecraftforge.eventbus.api.Event
A class containing all the events pertaining to the
MailItem
- Since:
- 17/11/2022
-
Nested Class Summary
Modifier 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 mailNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
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()
-