Class MailEvent

java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.MailEvent
Direct Known Subclasses:
MailEvent.EditMail, MailEvent.ReadMail, MailEvent.SealMail

public abstract class MailEvent extends net.neoforged.bus.api.Event
A class containing all the events pertaining to the MailItem
Since:
17/11/2022
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    The event called when the text on a mail is edited
    static class 
    Event fired when a player interacts with the mail item and opens it to read (or edit) it
    static class 
    Event fired when a player seals mail
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final net.minecraft.server.level.ServerPlayer
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    MailEvent(net.minecraft.server.level.ServerPlayer player)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.server.level.ServerPlayer
     

    Methods inherited from class java.lang.Object

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

    • player

      protected final net.minecraft.server.level.ServerPlayer player
  • Constructor Details

    • MailEvent

      public MailEvent(@Nonnull net.minecraft.server.level.ServerPlayer player)
  • Method Details

    • getPlayer

      @Nonnull public net.minecraft.server.level.ServerPlayer getPlayer()