Class MailEvent.SealMail
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.MailEvent
com.pixelmonmod.pixelmon.api.events.MailEvent.SealMail
- Direct Known Subclasses:
MailEvent.SealMail.Post
,MailEvent.SealMail.Pre
- Enclosing class:
- MailEvent
Event fired when a player seals mail
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Fired just after the mail has been sealed This is not cancelablestatic class
Fired just before the mail is sealed Cancelling this will prevent it from being sealed (but not stop it from being edited)Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.MailEvent
MailEvent.EditMail, MailEvent.ReadMail, MailEvent.SealMail
Nested 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
Modifier and TypeMethodDescriptionThe author of the sealed mailnet.minecraft.world.item.ItemStack
The open mail item stack taken from the playernet.minecraft.world.item.ItemStack
The sealed mail item stack given to the playergetText()
The text written to the sealed mailMethods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
openItemStack
protected net.minecraft.world.item.ItemStack openItemStack -
closedItemStack
protected net.minecraft.world.item.ItemStack closedItemStack -
text
-
author
-
-
Constructor Details
-
SealMail
-
-
Method Details
-
getOpenItemStack
public net.minecraft.world.item.ItemStack getOpenItemStack()The open mail item stack taken from the player- Returns:
- The open mail
-
getSealedItemStack
public net.minecraft.world.item.ItemStack getSealedItemStack()The sealed mail item stack given to the player- Returns:
- The sealed mail
-
getText
The text written to the sealed mail- Returns:
- Written text
-
getAuthor
The author of the sealed mail- Returns:
- author
-