Class MailEvent.SealMail.Pre
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.MailEvent
com.pixelmonmod.pixelmon.api.events.MailEvent.SealMail
com.pixelmonmod.pixelmon.api.events.MailEvent.SealMail.Pre
- Enclosing class:
- MailEvent.SealMail
Fired just before the mail is sealed
Cancelling this will prevent it from being sealed (but not stop it from being edited)
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.MailEvent.SealMail
MailEvent.SealMail.Post, MailEvent.SealMail.Pre
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
Fields inherited from class com.pixelmonmod.pixelmon.api.events.MailEvent.SealMail
author, closedItemStack, openItemStack, text
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
setClosedItemStack
(net.minecraft.world.item.ItemStack closedItemStack) void
setOpenItemStack
(net.minecraft.world.item.ItemStack openItemStack) void
Methods inherited from class com.pixelmonmod.pixelmon.api.events.MailEvent.SealMail
getAuthor, getOpenItemStack, getSealedItemStack, getText
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
Pre
-
-
Method Details
-
setText
-
setAuthor
-
setClosedItemStack
public void setClosedItemStack(net.minecraft.world.item.ItemStack closedItemStack) -
setOpenItemStack
public void setOpenItemStack(net.minecraft.world.item.ItemStack openItemStack)
-