Interface MergedGui

All Known Implementing Classes:
BarrelGui, ChestGui, EnderChestGui, ShulkerBoxGui

public interface MergedGui
Represents a chest-like gui in which the top and bottom inventories are merged together and only exist of one inventory component.
Since:
0.8.1
  • Method Details

    • addPane

      void addPane(@NotNull @NotNull Slot slot, @NotNull @NotNull Pane pane)
      Adds a pane to this gui
      Parameters:
      slot - the position of the pane
      pane - the pane to add
      Since:
      0.12.0
    • getPanes

      @NotNull @Contract(pure=true) @NotNull List<Pane> getPanes()
      Gets all the panes in this gui. This includes child panes from other panes.
      Returns:
      all panes
      Since:
      0.8.1
    • getItems

      @NotNull @Contract(pure=true) @NotNull Collection<GuiItem> getItems()
      Gets all the items in all underlying panes
      Returns:
      all items
      Since:
      0.8.1
    • getGuiComponent

      @NotNull @Contract(pure=true) @NotNull GuiComponent getGuiComponent()
      Gets the gui component for this gui
      Returns:
      the gui component
      Since:
      0.8.1