Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Epic Mobs Rework: Developer API

The public developer API for Epic Mobs Rework, a Spigot plugin for custom mobs, bosses, raids, arenas and companions.

This repository contains the API artifact, the documentation and runnable examples. The plugin itself is closed source; everything you need to build against it is here.

EpicMobsProvider.find().ifPresent(api -> {
    getLogger().info("Epic Mobs " + api.version()
            + " with " + api.getDefinitions().size() + " definitions");
});

What the API gives you

Queries live mobs, definitions (including their MythicMobs type), raids, arenas, per-player kill and codex counts
Events 11 Bukkit events covering spawn, damage, death, abilities, loot, raids and companions
Mutation spawn a mob, remove a mob, start a raid, stop a raid (Premium only)

Everything lives in one package, me.jaymar921.epicmobs.api. That package is the whole contract: nothing in it names a class outside it apart from Bukkit and the JDK, and it ships as its own thin artifact, so you compile against a handful of interfaces rather than against the plugin.

Start here

  1. Getting started - add the dependency, hook the API, write your first listener.
  2. Core concepts - views, keys, editions, reloads, threading.
  3. API reference - every method on every interface.
  4. Events - all 11 events, when they fire and what you can change.
  5. Mutation - the four calls that change the world.
  6. Best practices - the rules that keep your plugin correct.

Examples

Seven complete, compilable plugins in examples/, smallest first:

Example Shows
QuickStartPlugin resolving the API, one listener, graceful absence
MobInspectorPlugin queries: handles, definitions, damage tables, a /mobinfo command
SpawnControlPlugin refusing and relocating spawns with EpicMobPreSpawnEvent
BountyPlugin paying rewards on death, first-kill bonuses, kill counts
LootAugmentPlugin editing the drop list, participation drops, permission-gated luck
RaidAnnouncerPlugin raid start, wave and end events plus a live progress bar
CompanionPerksPlugin companion summon and death, owner-scoped effects

See examples/README.md for how to build and run them.

Downloads

Plugin apiVersion() Artifact
1.1.0 2 EpicMobsRework-api.jar
1.0.0 1 EpicMobsRework-api.jar
1.0-RC1 1 EpicMobsRework-api.jar

Build against the newest jar unless you need to run on an older server. What changed between them is in CHANGELOG.md.

The API jar contains interfaces and events only. It has no dependencies of its own beyond the Bukkit API you already have, and it is always provided scope: the real implementation comes from the plugin at runtime.

Requirements

Java 21
Server Spigot or Paper
Plugin Epic Mobs Rework installed on the server at runtime

License

The documentation in docs/ and the example code in examples/ are MIT. Copy them into your own plugin, change them, ship them, no attribution needed.

EpicMobsRework-api.jar in releases/ is built from the Epic Mobs Rework source and is covered by that project's own license, not by this one.

Support

Plugin page https://jhprojects.vercel.app/epic-mobs-rework
Issues with this API open an issue
API changes by version CHANGELOG.md

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors