Class LogMenuHolder

java.lang.Object
com.enhancedechest.gui.LogMenuHolder
All Implemented Interfaces:
org.bukkit.inventory.InventoryHolder

public final class LogMenuHolder extends Object implements org.bukkit.inventory.InventoryHolder
Marker holder for the /ee log <player> viewer: a read-only, paged list of a player's chest OPEN/CLOSE events. Every interaction is cancelled by LogMenuListener; clicking an event pane opens that event's snapshot, and the bottom-row controls page through the log.

The holder carries the paging state and a slot → LogEntry map so the listener can act on a click without re-querying: an entry slot fetches that snapshot, a control slot re-opens an adjacent page.

  • Constructor Details

  • Method Details

    • entryAt

      @Nullable public @Nullable LogEntry entryAt(int slot)
      The event whose pane sits in slot, or null if that slot holds no event pane.
    • getInventory

      @NotNull public @NotNull org.bukkit.inventory.Inventory getInventory()
      Specified by:
      getInventory in interface org.bukkit.inventory.InventoryHolder