Class MailEvent.EditMail.Pre
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.MailEvent
com.pixelmonmod.pixelmon.api.events.MailEvent.EditMail
com.pixelmonmod.pixelmon.api.events.MailEvent.EditMail.Pre
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
MailEvent.EditMail
public static class MailEvent.EditMail.Pre
extends MailEvent.EditMail
implements net.neoforged.bus.api.ICancellableEvent
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
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.events.MailEvent.EditMail
afterText, beforeText, mailItem
-
Constructor Summary
Constructors -
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Constructor Details
-
Pre
-
-
Method Details
-
setMailItem
public void setMailItem(net.minecraft.world.item.ItemStack mailItem) -
setAfterText
-