Interface GuiLayer

All Known Implementing Classes:
AbstractBarLayer, LayerStack, PagedLayer, ProgressBarLayer, ScrollLayer

public interface GuiLayer
Defines a visual layer that can be rendered over a GUI inventory.

Layers are used to provide background patterns, borders, or dynamic multi-slot visuals that are not necessarily individual interactive elements.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Performs any necessary cleanup when the layer is no longer active.
    void
    Renders the layer's content onto the provided GUI view.
  • Method Details

    • renderTo

      void renderTo(GuiView view)
      Renders the layer's content onto the provided GUI view.
      Parameters:
      view - the active view instance to render onto
    • cleanup

      void cleanup(GuiView view)
      Performs any necessary cleanup when the layer is no longer active.
      Parameters:
      view - the view instance being cleaned up