Uses of Class
nl.pim16aap2.lightkeeper.framework.MenuHandle
Packages that use MenuHandle
Package
Description
Public JUnit framework API for creating worlds and synthetic players and asserting game state.
AssertJ assertions for live server/plugin, world/block, entity-query, player, menu, event-capture and error state,
plus frozen inventory/item, event/value, result, entity/geometry and semantic chat snapshots.
-
Uses of MenuHandle in nl.pim16aap2.lightkeeper.framework
Methods in nl.pim16aap2.lightkeeper.framework that return MenuHandleModifier and TypeMethodDescriptionMenuHandle.andWaitForMenuClose()Waits until the menu closes using the default timeout.MenuHandle.andWaitForMenuClose(Duration timeout) Waits until the menu closes.PlayerHandle.andWaitForMenuOpen()Waits for an open menu using the default timeout.PlayerHandle.andWaitForMenuOpen(int timeoutSeconds) Waits for an open menu for this player.MenuHandle.andWaitTicks(int ticks) Waits for the requested number of ticks.MenuHandle.clickAtIndex(int slot) Clicks a slot in the open menu, auto-waiting for an open menu first (bounded, default 10 seconds).Clicks the first menu item whose display name contains the given fragment, auto-waiting for an open menu first (bounded, default 10 seconds).MenuHandle.dragWithMaterial(String materialKey, int... slots) Performs a drag operation using a material over the provided slots, auto-waiting for an open menu first (bounded, default 10 seconds).@Nullable MenuHandlePlayerHandle.getMenu()Returns the currently open menu if available.static MenuHandleFrameworkHandleFactory.menuHandle(IFrameworkGatewayView frameworkGateway, PlayerHandle playerHandle) Creates a menu handle.MenuHandle.verifyMenuClosed()Asserts that no menu is currently open.MenuHandle.verifyMenuName(String expectedTitle) Asserts that the menu is open and has the expected title. -
Uses of MenuHandle in nl.pim16aap2.lightkeeper.framework.assertions
Methods in nl.pim16aap2.lightkeeper.framework.assertions with parameters of type MenuHandleModifier and TypeMethodDescriptionstatic MenuHandleAssertLightkeeperAssertions.assertThat(@Nullable MenuHandle actual) Creates an assertion chain for menu-related state.