LocationAPI

public final class LocationAPI

Public API for external plugins to contribute dungeon and region-protection detection to FMM's Lua em.location.is_in_dungeon and em.location.is_protected checks.

Plugins pass a plain Predicate<Location> rather than an FMM-specific interface so no shaded types are exchanged across plugin classloaders.

Functions

Link copied to clipboard
public static void registerDungeonLocator(String providerName, Predicate<Location> predicate)
Registers a dungeon predicate.
Link copied to clipboard
public static void registerProtectionProvider(String providerName, Predicate<Location> predicate)
Registers a region-protection predicate.