Uses of Class
nl.pim16aap2.lightkeeper.framework.PlayerHandle
Packages that use PlayerHandle
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 PlayerHandle in nl.pim16aap2.lightkeeper.framework
Methods in nl.pim16aap2.lightkeeper.framework that return PlayerHandleModifier and TypeMethodDescriptionPlayerHandle.andWaitTicks(int ticks) Waits for at least the requested number of server ticks.IPlayerBuilder.build()Builds and joins the configured synthetic player.Makes this player say a chat message, firing the real chat event (synchronously, as with any plugin-triggered chat).PlayerHandle.clickChatComponent(ChatComponentSnapshot component) Clicks therun_commandaction of a captured chat component by extracting its command and executing it as this player, exactly as a real player clicking the message would.PlayerHandle.executeCommand(String command) Executes a command as this player.IBots.join(String name, UUID uuid, WorldHandle world) Joins an invulnerable synthetic player into a world at spawn.IBots.join(String name, WorldHandle world) Joins an invulnerable synthetic player into a world at spawn.PlayerHandle.placeBlock(String materialKey, int x, int y, int z) Places a block from this player perspective.MenuHandle.player()Gets the player associated with this menu handle.static PlayerHandleFrameworkHandleFactory.playerHandle(IFrameworkGatewayView frameworkGateway, UUID uniqueId, String name) Creates a player handle.PlayerHandle.teleport(WorldHandle world, double x, double y, double z) Teleports this player to target coordinates in a world.PlayerHandle.teleport(WorldHandle world, Vec3 position) Teleports this player to a target position in a world.Methods in nl.pim16aap2.lightkeeper.framework with parameters of type PlayerHandleModifier and TypeMethodDescriptionstatic MenuHandleFrameworkHandleFactory.menuHandle(IFrameworkGatewayView frameworkGateway, PlayerHandle playerHandle) Creates a menu handle.voidIFrameworkGatewayView.removePlayer(PlayerHandle player) Removes a synthetic player. -
Uses of PlayerHandle in nl.pim16aap2.lightkeeper.framework.assertions
Methods in nl.pim16aap2.lightkeeper.framework.assertions with parameters of type PlayerHandleModifier and TypeMethodDescriptionstatic PlayerHandleAssertLightkeeperAssertions.assertThat(@Nullable PlayerHandle actual) Creates an assertion chain for player-related state.