EliteMindService
EliteMobs-owned interface for Lua-authored native mob minds.
Consumers obtain this interface from Bukkit's services manager after com.magmaguy.elitemobs.api.EliteMobsInitializedEvent. All mutations must run on the server thread. Registered Lua source is validated immediately, while each entity receives a fresh executable program and Lua environment when it is bound.
Functions
Link copied to clipboard
Returns body features supported by the active native Minecraft adapter.
Link copied to clipboard
Stops the program and terminally removes its native actor.
Link copied to clipboard
Returns the current native runtime state when the actor has a mind binding.
Link copied to clipboard
public abstract EliteMindModule registerLuaModule(Plugin owner, NamespacedKey key, long revision, String source)
Registers or advances one owner-scoped Lua module before programs reference it.
Link copied to clipboard
public abstract EliteMindProgram registerLuaProgram(Plugin owner, NamespacedKey key, long revision, String source)
Registers or advances one owner-scoped Lua program.
Link copied to clipboard
Registers one owner-scoped natural-spawn provider.
Link copied to clipboard
Idempotently pauses or resumes an actor's native Mind and attached power runtimes.
Link copied to clipboard
public abstract EliteMindSnapshot setProgram(EliteEntity eliteEntity, NamespacedKey key, EliteMindTransferPolicy transferPolicy)
Replaces the program on an actor already backed by a MagmaCore mind body.
Link copied to clipboard
Spawns an EliteMobs actor on MagmaCore's native mind body and binds the requested program.
Link copied to clipboard
Closes the plugin's module and natural-spawn scopes, removes its programs, and removes actors still running those programs.