Package org.yuemi.libs.api.gui
Interface GuiLayerBuilder
public interface GuiLayerBuilder
Fluent builder for creating GuiLayer instances.
-
Method Summary
Modifier and TypeMethodDescription@NotNull GuiLayerbuild()Builds and returns the final GuiLayer instance.@NotNull GuiLayerBuilderFills the entire layer inventory with the specified item.@NotNull GuiLayerBuilderSets an item at a specific slot in the layer.
-
Method Details
-
setItem
Sets an item at a specific slot in the layer.- Parameters:
slot- the slot indexitem- the GUI item- Returns:
- this builder
-
fill
Fills the entire layer inventory with the specified item. Useful for background fills.- Parameters:
item- the GUI item- Returns:
- this builder
-
build
Builds and returns the final GuiLayer instance.- Returns:
- the constructed GuiLayer
-