Package nl.pim16aap2.lightkeeper.framework.assertions
@NullMarked
package nl.pim16aap2.lightkeeper.framework.assertions
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.
For example, this checks current plugin state:
LightkeeperAssertions.assertThat(framework)
.server()
.plugin("MyPlugin")
.isEnabled();
This freezes an inventory observation and selects its item:
LightkeeperAssertions.assertThat(player)
.inventory()
.itemAt(0);
Assertions never wait implicitly; use
LightkeeperAssertions.eventually to retry a complete observation, recreating frozen navigation inside
the callback. Actions, fixture creation and buffer clearing remain outside assertion chains.
-
ClassDescriptionEager assertions over a live block address, using the canonical material and partial-state rules.Partial spec assertions over a frozen block state, using the snapshot's canonical matcher.Frozen event assertions that preserve typed fields and distinguish absent from explicit-null values.Frozen semantic assertions associating literal text with effective click actions and payloads.Assertions over a returned command dispatch result, without executing or retrying the command.Live entity-query assertions; count checks use the cheap count-only RPC and never load chunks.Position and display-transform assertions over one frozen entity observation.Frozen display-transform navigation with explicit vector tolerances and ordinary quaternion value checks.Eager, non-consuming assertions over a live event capture buffer.Assertions over a completed interaction; cancellation checks require an actual fired event.Assertions over a frozen inventory snapshot, including occupied-slot and item navigation.AssertJ entrypoints for LightKeeper handles.An assertion that
LightkeeperAssertions.eventually(Duration, RetryingAssertion)re-runs until it passes.Assertions for framework-level runtime state.Eager assertions over the current menu for a retained player-bound handle.Assertions over the material, display name and ordered lore of one frozen item observation.Assertions over one frozen menu observation; these never query the server.Assertions for synthetic player state.Typed, frozen value navigation that preserves accessor/index paths without string coercion.Eager assertions over live server observations.Non-consuming assertions over live structured error and warning observations.Eager assertions for a named plugin, re-querying the server on every evaluation.Frozen vector assertions with explicit Euclidean and per-component tolerance contracts.World-selected block assertions delegating to the canonical live block subject.Assertions for world handles.