Class MazeApiProvider
- All Implemented Interfaces:
MazeEngineApi
The provider exposes registry, preset, and operation adapters without placing their implementation classes in the consumable API JAR. It checks server thread and enabled-plugin access, converts saved records to immutable public snapshots, and caches graph summaries by layout identity.
Terminal service outcomes are translated into completion or failure events. Successful deletion produces a retained DELETED snapshot; failed planning can produce an event with no maze description. Wrapper exceptions are unwrapped before being exposed as public failure causes.
-
Field Summary
Fields inherited from interface MazeEngineApi
VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmazes()Returns the registry used to inspect saved mazes.Returns the service used to submit world-editing operations.presets()Returns the registry describing the currently configured presets.snapshot(MazeRecord record)
-
Constructor Details
-
MazeApiProvider
-
-
Method Details
-
preset
-
snapshot
-
mazes
Description copied from interface:MazeEngineApiReturns the registry used to inspect saved mazes.The registry exposes immutable descriptions, teleport destinations, and routes through the saved cell graph. Its queries require the server thread.
- Specified by:
mazesin interfaceMazeEngineApi- Returns:
- the maze query service
-
presets
Description copied from interface:MazeEngineApiReturns the registry describing the currently configured presets.Successful configuration reloads affect subsequent preset queries. Preset metadata already captured in a saved maze remains unchanged.
- Specified by:
presetsin interfaceMazeEngineApi- Returns:
- the current preset query service
-
operations
Description copied from interface:MazeEngineApiReturns the service used to submit world-editing operations.Requests use the plugin's normal permission, ownership, and action-specific safety checks. Each accepted request returns a handle for that operation.
- Specified by:
operationsin interfaceMazeEngineApi- Returns:
- the maze operation service
-