Class LogSnapshotHolder

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

public final class LogSnapshotHolder extends Object implements org.bukkit.inventory.InventoryHolder
Marker holder for a chest-log snapshot preview: a throwaway inventory rebuilt from a logged visit's stored contents, opened when an admin clicks an entry in the /ee log viewer. It is not a live chest and is never saved — nothing here funnels through the session manager, so closing it simply discards it and the real chest is untouched.

The preview is a dupe-proof sandbox: LogMenuListener lets the admin rearrange items within the preview to inspect them, but blocks every path that could move an item into their own inventory (shift-click, hotbar swap, drop, drags/clicks touching the bottom inventory) and clears the cursor on close. On close it re-opens the log at page — the page the admin was viewing when they clicked in — so pressing Esc/E lands back on the same list.

  • Constructor Details

    • LogSnapshotHolder

      public LogSnapshotHolder(UUID owner, String ownerName, int index, int page, @Nullable @Nullable String query)
  • Method Details

    • getInventory

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