Package xyz.xenondevs.invui.window
Interface AnvilWindow.Builder<S extends AnvilWindow.Builder<S>>
- Type Parameters:
S
- The builder type.
- All Superinterfaces:
Cloneable
,Window.Builder<AnvilWindow,
S>
- All Known Subinterfaces:
AnvilWindow.Builder.Single
,AnvilWindow.Builder.Split
- Enclosing interface:
AnvilWindow
public static interface AnvilWindow.Builder<S extends AnvilWindow.Builder<S>>
extends Window.Builder<AnvilWindow,S>
An
AnvilWindow
builder.- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
A singleAnvilWindow
builder.static interface
A splitAnvilWindow
builder.Nested classes/interfaces inherited from interface xyz.xenondevs.invui.window.Window.Builder
Window.Builder.Double<W extends Window,
S extends Window.Builder.Double<W, S>>, Window.Builder.Normal<V, S extends Window.Builder.Normal<V, S>> -
Method Summary
Modifier and TypeMethodDescriptionaddRenameHandler
(@NotNull Consumer<String> renameHandler) Adds a rename handler to theAnvilWindow
.setRenameHandlers
(@NotNull List<@NotNull Consumer<String>> renameHandlers) Sets the rename handlers of theAnvilWindow
.Methods inherited from interface xyz.xenondevs.invui.window.Window.Builder
addCloseHandler, addModifier, addOpenHandler, addOutsideClickHandler, build, build, clone, open, setCloseable, setCloseHandlers, setModifiers, setOpenHandlers, setOutsideClickHandlers, setTitle, setTitle, setTitle, setViewer
-
Method Details
-
setRenameHandlers
@Contract("_ -> this") @NotNull S setRenameHandlers(@NotNull @NotNull List<@NotNull Consumer<String>> renameHandlers) Sets the rename handlers of theAnvilWindow
.- Parameters:
renameHandlers
- The new rename handlers.- Returns:
- The current builder.
-
addRenameHandler
@Contract("_ -> this") @NotNull S addRenameHandler(@NotNull @NotNull Consumer<String> renameHandler) Adds a rename handler to theAnvilWindow
.- Parameters:
renameHandler
- The rename handler to add.- Returns:
- The current builder.
-