EnchantmentProviders

public final class EnchantmentProviders

Provider discovery and calls across relocated MagmaCore copies. All operations run on the server thread. Only JDK/Bukkit values cross the service boundary; local records stay local. This module does not install enchantments, dispatch combat events or apply damage.

Types

Link copied to clipboard
@FunctionalInterface()
public interface Handler
Link copied to clipboard
public enum Operation
Link copied to clipboard
public final class Provider extends Record
Link copied to clipboard
public final class Registration implements AutoCloseable
Ownership token.
Link copied to clipboard
public final class Result extends Record
Link copied to clipboard
public enum Status

Functions

Link copied to clipboard
public static EnchantmentProviders.Result call(EnchantmentProviders.Provider expected, EnchantmentProviders.Operation operation, Map<String, Object> payload)
Pins a request to the descriptor observed by the caller; reload never silently retargets it.
Link copied to clipboard
public static Optional<EnchantmentProviders.Provider> find(String namespace)
A conflict has no winner, regardless of Bukkit service priority or registration order.
Link copied to clipboard
Returns independent descriptors, including incompatible peers for operator diagnosis.
Link copied to clipboard
public static EnchantmentProviders.Registration register(Plugin owner, String namespace, Set<String> capabilities, EnchantmentProviders.Handler handler)