Interface GuiLayerBuilder


public interface GuiLayerBuilder
Fluent builder for creating GuiLayer instances.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull GuiLayer
    Builds and returns the final GuiLayer instance.
    fill(@NotNull GuiItem item)
    Fills the entire layer inventory with the specified item.
    setItem(int slot, @NotNull GuiItem item)
    Sets an item at a specific slot in the layer.
  • Method Details

    • setItem

      @NotNull @NotNull GuiLayerBuilder setItem(int slot, @NotNull @NotNull GuiItem item)
      Sets an item at a specific slot in the layer.
      Parameters:
      slot - the slot index
      item - the GUI item
      Returns:
      this builder
    • fill

      @NotNull @NotNull GuiLayerBuilder fill(@NotNull @NotNull GuiItem item)
      Fills the entire layer inventory with the specified item. Useful for background fills.
      Parameters:
      item - the GUI item
      Returns:
      this builder
    • build

      @NotNull @NotNull GuiLayer build()
      Builds and returns the final GuiLayer instance.
      Returns:
      the constructed GuiLayer