registerDungeonLocator

public static void registerDungeonLocator(String providerName, Predicate<Location> predicate)

Registers a dungeon predicate. A location is reported as being inside a dungeon whenever any registered predicate returns true for it. Registering again under the same provider name replaces the earlier predicate.

Parameters

providerName

short identifier for logging and replacement (e.g. "EliteMobs"); a null name can be neither replaced nor unregistered

predicate

returns true if the location is inside a dungeon