Class AbstractLotusListener<C>

java.lang.Object
studio.mevera.lotus.internal.AbstractLotusListener<C>

public abstract class AbstractLotusListener<C> extends Object
Shared listener logic that is agnostic to the platform-specific InventoryView ABI.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Lotus<C>
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractLotusListener(@NotNull Lotus<C> lotus)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    handleClick(@NotNull org.bukkit.event.inventory.InventoryClickEvent event, @NotNull org.bukkit.inventory.Inventory topInventory, @NotNull org.bukkit.inventory.Inventory bottomInventory)
     
    protected void
    handleClose(@NotNull org.bukkit.event.inventory.InventoryCloseEvent event)
     
    protected void
    handleDrag(@NotNull org.bukkit.event.inventory.InventoryDragEvent event, @NotNull org.bukkit.inventory.Inventory topInventory)
     
    protected void
    handleOpen(@NotNull org.bukkit.event.inventory.InventoryOpenEvent event)
     
    protected void
    handleQuit(@NotNull org.bukkit.entity.Player player)
     

    Methods inherited from class java.lang.Object

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

    • lotus

      protected final Lotus<C> lotus
  • Constructor Details

    • AbstractLotusListener

      protected AbstractLotusListener(@NotNull @NotNull Lotus<C> lotus)
  • Method Details

    • handleClick

      protected void handleClick(@NotNull @NotNull org.bukkit.event.inventory.InventoryClickEvent event, @NotNull @NotNull org.bukkit.inventory.Inventory topInventory, @NotNull @NotNull org.bukkit.inventory.Inventory bottomInventory)
    • handleDrag

      protected void handleDrag(@NotNull @NotNull org.bukkit.event.inventory.InventoryDragEvent event, @NotNull @NotNull org.bukkit.inventory.Inventory topInventory)
    • handleOpen

      protected void handleOpen(@NotNull @NotNull org.bukkit.event.inventory.InventoryOpenEvent event)
    • handleClose

      protected void handleClose(@NotNull @NotNull org.bukkit.event.inventory.InventoryCloseEvent event)
    • handleQuit

      protected void handleQuit(@NotNull @NotNull org.bukkit.entity.Player player)