EliteLuaPowerService
EliteMobs-owned catalog and attachment interface for boss Lua powers.
Consumers obtain this service from Bukkit after com.magmaguy.elitemobs.api.EliteMobsInitializedEvent. Mutations must run on the server thread. Each attachment receives fresh Lua runtimes owned by the existing EliteMobs power lifecycle.
A registered script may implement on_mind_action(context). The hook receives context.mind_action.key, an immutable scalar payload, game_tick, and generation, and returns "accepted", "deferred", or "rejected". Mind actions visit attached powers in exact attachment order and stop at the first accepted result.
Functions
Link copied to clipboard
Returns canonical runtime activity for the actor's service-managed powers in attachment order.
Link copied to clipboard
Returns service-managed programs in attachment order.
Link copied to clipboard
public abstract void registerActionHandler(Plugin owner, NamespacedKey powerKey, NamespacedKey actionKey, ElitePowerActionHandler handler)
Adds an optional Java integration handler for one attached power and semantic action.
Link copied to clipboard
public EliteLuaPowerProgram registerLuaPower(Plugin owner, NamespacedKey key, long revision, String source)
public abstract EliteLuaPowerProgram registerLuaPower(Plugin owner, NamespacedKey key, long revision, String source, EliteLuaPowerType type, String effect)
Link copied to clipboard
public abstract List<EliteLuaPowerProgram> setPowers(Plugin owner, EliteEntity eliteEntity, List<NamespacedKey> orderedPowerKeys)
Replaces the actor's complete power collection with fresh runtimes in the supplied order.
Link copied to clipboard
Unregisters the owner's catalog entries and detaches its runtimes from active actors.