Class MobSpawnListener
java.lang.Object
dev.despical.mazeengine.listener.MobSpawnListener
- All Implemented Interfaces:
org.bukkit.event.Listener
Cancels mob spawn attempts within maze footprints when prevention is enabled.
The listener handles CreatureSpawnEvent at highest priority and leaves already cancelled events alone. Only Mob entities are considered; the service checks the target world and footprint against both saved records and active planning reservations.
The protected footprint extends upward from the maze floor, including wall tops, roofs, and space above them. This policy is configured independently of terrain protection. It prevents new spawns rather than removing mobs that already exist in or above a maze.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MobSpawnListener
-
-
Method Details
-
spawn
public void spawn(org.bukkit.event.entity.CreatureSpawnEvent event)
-