registerProtectionProvider

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

Registers a region-protection predicate. A location is reported as protected whenever any registered predicate returns true for it.

Parameters

providerName

short identifier for logging and diagnostics

predicate

returns true if the location is inside a protected region