The Epic Mobs Rework developer API, in reading order.
| Page | Covers | |
|---|---|---|
| 1 | Getting started | requirements, the dependency, plugin.yml, resolving the API, a first listener, troubleshooting |
| 2 | Core concepts | the package boundary, the four views, keys, editions, reloads, threading |
| 3 | API reference | every method on EpicMobsProvider, EpicMobsAPI, EpicMobHandle, EpicMobDefinitionView, RaidView |
| 4 | Events | all 11 events, when each fires, what you can change |
| 5 | Mutation | spawn, remove, startRaid, stopRaid, and the edition gate |
| 6 | Best practices | the five hard rules, versioning, performance, a ship checklist |
Then read the examples: seven complete plugins, smallest first.
| I want to | Read |
|---|---|
| add the jar to my build | Getting started, step 1 |
| know if an entity is an Epic Mob | isEpicMob |
| tell a MythicMobs-backed definition from a vanilla one | mythicMob |
| stop a mob spawning somewhere | EpicMobPreSpawnEvent |
| change or block damage | EpicMobDamageEvent |
| add or remove drops | EpicMobLootDropEvent |
| reward everyone who fought a boss | damageByPlayer |
| track raids | RaidView and the raid events |
| spawn a mob from my own code | Mutation |
| know why my call did nothing | The edition gate |
| avoid breaking on the next release | Versioning |