Package xyz.xenondevs.invui.window
Interface AnvilWindow
- All Superinterfaces:
Window
A
Window
that uses an anvil inventory.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
AnvilWindow.Builder<S extends AnvilWindow.Builder<S>>
AnAnvilWindow
builder. -
Method Summary
Modifier and TypeMethodDescription@Nullable String
Gets the current rename text.static AnvilWindow.Builder.Single
single()
Creates a newWindow Builder
for a singleAnvilWindow
.static @NotNull AnvilWindow
single
(@NotNull Consumer<@NotNull AnvilWindow.Builder.Single> consumer) static AnvilWindow.Builder.Split
split()
Creates a newWindow Builder
for a splitAnvilWindow
.static @NotNull AnvilWindow
split
(Consumer<@NotNull AnvilWindow.Builder.Split> consumer) Methods inherited from interface xyz.xenondevs.invui.window.Window
addCloseHandler, addOpenHandler, addOutsideClickHandler, changeTitle, changeTitle, changeTitle, close, getCurrentViewer, getPlayerItems, getViewer, getViewerUUID, isCloseable, isOpen, open, removeCloseHandler, removeOutsideClickHandler, setCloseable, setCloseHandlers, setOpenHandlers, setOutsideClickHandlers
-
Method Details
-
single
Creates a newWindow Builder
for a singleAnvilWindow
.- Returns:
- The new
Window Builder
.
-
single
@NotNull static @NotNull AnvilWindow single(@NotNull @NotNull Consumer<@NotNull AnvilWindow.Builder.Single> consumer) - Parameters:
consumer
- TheConsumer
to configure theWindow Builder
.- Returns:
- The created
AnvilWindow
.
-
split
Creates a newWindow Builder
for a splitAnvilWindow
.- Returns:
- The new
Window Builder
.
-
split
- Parameters:
consumer
- TheConsumer
to configure theWindow Builder
.- Returns:
- The created
AnvilWindow
.
-
getRenameText
Gets the current rename text.- Returns:
- The current rename text.
-