Class Mail

java.lang.Object
xyz.xenondevs.invui.item.impl.AbstractItem
dev.unnm3d.redischat.mail.Mail
All Implemented Interfaces:
xyz.xenondevs.invui.item.Item

public class Mail extends xyz.xenondevs.invui.item.impl.AbstractItem
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Mail(@NotNull MailGUIManager manager, double id, String serialized)
    Creates a mail from a serialized string
    Mail(@NotNull MailGUIManager manager, @NotNull String sender, @NotNull String receiver, @NotNull String title)
    Creates a new mail
  • Method Summary

    Modifier and Type
    Method
    Description
    xyz.xenondevs.invui.item.ItemProvider
     
    void
    handleClick(@NotNull org.bukkit.event.inventory.ClickType clickType, @NotNull org.bukkit.entity.Player player, @NotNull org.bukkit.event.inventory.InventoryClickEvent event)
     
    void
    openPreview(@NotNull org.bukkit.entity.Player player, boolean readStatus)
    Opens the mail preview to the player The most hard part of RedisChat
     
     

    Methods inherited from class xyz.xenondevs.invui.item.impl.AbstractItem

    addWindow, getWindows, notifyWindows, removeWindow

    Methods inherited from class java.lang.Object

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

    • Mail

      public Mail(@NotNull @NotNull MailGUIManager manager, @NotNull @NotNull String sender, @NotNull @NotNull String receiver, @NotNull @NotNull String title)
      Creates a new mail
      Parameters:
      sender - The sender of the mail
      receiver - The mail receiver
      title - The title of the mail
    • Mail

      public Mail(@NotNull @NotNull MailGUIManager manager, double id, String serialized)
      Creates a mail from a serialized string
      Parameters:
      id - The mail id
      serialized - The serialized mail string
  • Method Details

    • serialize

      public String serialize()
    • serializeWithId

      public String serializeWithId()
    • getItemProvider

      public xyz.xenondevs.invui.item.ItemProvider getItemProvider()
    • handleClick

      public void handleClick(@NotNull @NotNull org.bukkit.event.inventory.ClickType clickType, @NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull org.bukkit.event.inventory.InventoryClickEvent event)
    • openPreview

      public void openPreview(@NotNull @NotNull org.bukkit.entity.Player player, boolean readStatus)
      Opens the mail preview to the player The most hard part of RedisChat
      Parameters:
      player - The player to open the preview to
      readStatus - If the mail should be marked as read