Package dev.despical.mazeengine.listener
package dev.despical.mazeengine.listener
Minecraft event guards for saved maze terrain and active operations.
TerrainProtectionListener handles player edits and environmental block changes, OperationSafetyListener guards movement, inventories, physics, and world unload during work, and MobSpawnListener prevents configured mob births within maze footprints from the floor upward.
Listeners consult current service records and operation state rather than maintaining another maze registry. The normal terrain toggle and player bypass do not remove busy-operation safeguards. WorldGuard checks for plugin-driven writes are performed by the operation integration layer.
-
ClassesClassDescriptionCancels mob spawn attempts within maze footprints when prevention is enabled.Prevents player and block interactions from disrupting active maze operations.Protects saved maze terrain from player edits and environmental changes.