Package xyz.xenondevs.invui.window
Interface CartographyWindow
- All Superinterfaces:
Window
A
Window
that uses a cartography table inventory.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
CartographyWindow.Builder<S extends CartographyWindow.Builder<S>>
ACartographyWindow
builder. -
Method Summary
Modifier and TypeMethodDescriptionvoid
resetMap()
Resets the map in the cartography table.single()
Creates a newWindow Builder
for a singleCartographyWindow
.static @NotNull CartographyWindow
single
(@NotNull Consumer<@NotNull CartographyWindow.Builder.Single> consumer) split()
Creates a newWindow Builder
for a splitCartographyWindow
.static @NotNull CartographyWindow
split
(@NotNull Consumer<@NotNull CartographyWindow.Builder.Split> consumer) default void
Updates the map in the cartography table.default void
updateMap
(@Nullable xyz.xenondevs.inventoryaccess.map.MapPatch patch) Updates the map in the cartography table.void
updateMap
(@Nullable xyz.xenondevs.inventoryaccess.map.MapPatch patch, @Nullable List<xyz.xenondevs.inventoryaccess.map.MapIcon> icons) Updates the map in the cartography table.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 singleCartographyWindow
.- Returns:
- The new
Window Builder
.
-
single
@NotNull static @NotNull CartographyWindow single(@NotNull @NotNull Consumer<@NotNull CartographyWindow.Builder.Single> consumer) - Parameters:
consumer
- TheConsumer
to configure theWindow Builder
.- Returns:
- The created
CartographyWindow
.
-
split
Creates a newWindow Builder
for a splitCartographyWindow
.- Returns:
- The new
Window Builder
.
-
split
@NotNull static @NotNull CartographyWindow split(@NotNull @NotNull Consumer<@NotNull CartographyWindow.Builder.Split> consumer) - Parameters:
consumer
- TheConsumer
to configure theWindow Builder
.- Returns:
- The created
CartographyWindow
.
-
updateMap
void updateMap(@Nullable @Nullable xyz.xenondevs.inventoryaccess.map.MapPatch patch, @Nullable @Nullable List<xyz.xenondevs.inventoryaccess.map.MapIcon> icons) Updates the map in the cartography table.- Parameters:
patch
- TheMapPatch
to apply to the map.icons
- TheMapIcons
to display on the map.
-
updateMap
default void updateMap(@Nullable @Nullable xyz.xenondevs.inventoryaccess.map.MapPatch patch) Updates the map in the cartography table.- Parameters:
patch
- TheMapPatch
to apply to the map.
-
updateMap
Updates the map in the cartography table.- Parameters:
icons
- TheMapIcons
to display on the map.
-
resetMap
void resetMap()Resets the map in the cartography table.
-