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.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.EditMail
afterText, beforeText, mailItem
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setAfterText
(String afterText) void
setMailItem
(net.minecraft.world.item.ItemStack mailItem) Methods inherited from class com.pixelmonmod.pixelmon.api.events.MailEvent.EditMail
getAfterText, getBeforeText, getMailItem
Methods 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
-