Class EnderChestHolder

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

public final class EnderChestHolder extends Object implements org.bukkit.inventory.InventoryHolder
Marker holder attached to every custom enderchest Inventory. Listeners identify our GUIs with: inventory.getHolder() instanceof EnderChestHolder
  • Constructor Details

    • EnderChestHolder

      public EnderChestHolder(UUID owner, int index, int size, ChestKind kind, @Nullable @Nullable org.bukkit.Location sourceBlock)
  • Method Details

    • getInventory

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