Package xyz.xenondevs.invui.window
Interface CartographyWindow
- All Superinterfaces:
Window
A
Window that uses a cartography table inventory.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceCartographyWindow.Builder<S extends CartographyWindow.Builder<S>>ACartographyWindowbuilder. -
Method Summary
Modifier and TypeMethodDescriptionvoidresetMap()Resets the map in the cartography table.single()Creates a newWindow Builderfor a singleCartographyWindow.static @NotNull CartographyWindowsingle(@NotNull Consumer<@NotNull CartographyWindow.Builder.Single> consumer) split()Creates a newWindow Builderfor a splitCartographyWindow.static @NotNull CartographyWindowsplit(@NotNull Consumer<@NotNull CartographyWindow.Builder.Split> consumer) default voidUpdates the map in the cartography table.default voidupdateMap(@Nullable xyz.xenondevs.inventoryaccess.map.MapPatch patch) Updates the map in the cartography table.voidupdateMap(@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 Builderfor a singleCartographyWindow.- Returns:
- The new
Window Builder.
-
single
@NotNull static @NotNull CartographyWindow single(@NotNull @NotNull Consumer<@NotNull CartographyWindow.Builder.Single> consumer) - Parameters:
consumer- TheConsumerto configure theWindow Builder.- Returns:
- The created
CartographyWindow.
-
split
Creates a newWindow Builderfor a splitCartographyWindow.- Returns:
- The new
Window Builder.
-
split
@NotNull static @NotNull CartographyWindow split(@NotNull @NotNull Consumer<@NotNull CartographyWindow.Builder.Split> consumer) - Parameters:
consumer- TheConsumerto 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- TheMapPatchto apply to the map.icons- TheMapIconsto 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- TheMapPatchto apply to the map.
-
updateMap
Updates the map in the cartography table.- Parameters:
icons- TheMapIconsto display on the map.
-
resetMap
void resetMap()Resets the map in the cartography table.
-