Class MailEvent.EditMail

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.MailEvent
com.pixelmonmod.pixelmon.api.events.MailEvent.EditMail
Direct Known Subclasses:
MailEvent.EditMail.Post, MailEvent.EditMail.Pre
Enclosing class:
MailEvent

public abstract static class MailEvent.EditMail extends MailEvent
The event called when the text on a mail is edited
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Fired after the text has been updated
    static class 
    Fired just before the item is updated with the new text Cancelling this will mean the text is not updated

    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
    Modifier and Type
    Field
    Description
    protected String
     
    protected String
     
    protected net.minecraft.world.item.ItemStack
     

    Fields inherited from class com.pixelmonmod.pixelmon.api.events.MailEvent

    player
  • Constructor Summary

    Constructors
    Constructor
    Description
    EditMail(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.item.ItemStack mailItem, String beforeText, String afterText)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    net.minecraft.world.item.ItemStack
     

    Methods inherited from class com.pixelmonmod.pixelmon.api.events.MailEvent

    getPlayer

    Methods inherited from class net.minecraftforge.eventbus.api.Event

    getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • mailItem

      protected net.minecraft.world.item.ItemStack mailItem
    • beforeText

      protected String beforeText
    • afterText

      protected String afterText
  • Constructor Details

    • EditMail

      public EditMail(@Nonnull net.minecraft.server.level.ServerPlayer player, net.minecraft.world.item.ItemStack mailItem, String beforeText, String afterText)
  • Method Details

    • getMailItem

      public net.minecraft.world.item.ItemStack getMailItem()
    • getBeforeText

      public String getBeforeText()
    • getAfterText

      public String getAfterText()