Class WorldEditBridge

java.lang.Object
dev.despical.mazeengine.integration.WorldEditBridge

public final class WorldEditBridge extends Object
Adapts optional WorldEdit functionality to maze selections and terrain snapshots.

Selection resolution accepts complete cuboids in a loaded world and returns their inclusive block bounds. Snapshot creation uses a clipboard whose local coordinates correspond to the maze volume; loaded schematics must match the expected dimensions before they can be restored.

Clipboard snapshots retain full block state and block-entity data. Writes use Sponge v3 schematics and temporary-file replacement, while restore suppresses neighbor and validation side effects during the indexed batch. The service only loads this bridge when a requested feature requires WorldEdit or FAWE.