Class MailEvent.EditMail.Pre
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.MailEvent
com.pixelmonmod.pixelmon.api.events.MailEvent.EditMail
com.pixelmonmod.pixelmon.api.events.MailEvent.EditMail.Pre
- Enclosing class:
- MailEvent.EditMail
Fired just before the item is updated with the new text
Cancelling this will mean the text is not updated
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.MailEvent.EditMail
MailEvent.EditMail.Post, MailEvent.EditMail.PreNested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.MailEvent
MailEvent.EditMail, MailEvent.ReadMail, MailEvent.SealMailNested 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.EditMail
afterText, beforeText, mailItem -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetAfterText(String afterText) voidsetMailItem(net.minecraft.world.item.ItemStack mailItem) Methods inherited from class com.pixelmonmod.pixelmon.api.events.MailEvent.EditMail
getAfterText, getBeforeText, getMailItemMethods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
Pre
-
-
Method Details
-
setMailItem
public void setMailItem(net.minecraft.world.item.ItemStack mailItem) -
setAfterText
-