Class LogMenu

java.lang.Object
com.enhancedechest.gui.LogMenu

public final class LogMenu extends Object
Builds the /ee log <player> viewer: a 54-slot inventory whose top 45 slots hold one ender chest pane per visit, newest first, and whose bottom row is navigation. A pane's name is who did it and when; its lore is the time it was open and the change summary (+ added to the chest, − taken out) on the same tooltip. Clicking a pane opens that visit's snapshot.

All text is rendered eagerly with the viewer's Locale (the plugin's localisation invariant); item names in the diff come from the client's own translations via Component.translatable().

  • Field Details

  • Constructor Details

  • Method Details

    • build

      public org.bukkit.inventory.Inventory build(Locale locale, UUID owner, String ownerName, List<LogEntry> entries, int page, int pageCount, String query)
      Builds one page of the log viewer.
      Parameters:
      entries - the page's visits, newest first (at most PAGE_SIZE)
      page - 0-based page index (0 = most recent)
      pageCount - total pages