Class MailEvent

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

public class MailEvent extends net.minecraftforge.eventbus.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

    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 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 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

    • 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()