> For the complete documentation index, see [llms.txt](https://edseries-plugins.gitbook.io/p/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://edseries-plugins.gitbook.io/p/edmobswords/api/mobs-api.md).

# Mobs API

`EdMobSwordsMobsAPI` — the mob templates of `plugins/EdMobSwords/mobs/<id>.yml`.

```java
EdMobSwordsMobsAPI mobs = EdMobSwordsAPI.getInstance().getMobsAPI();
```

***

### Methods

#### `getMobIds()` / `exists(String mobId)`

The loaded template ids.

#### `getEntityType(String mobId)`

The template's `type`, or `null`.

#### `getMobName(String mobId)`

The raw `name` template (with `{health}` placeholders), or `null`.

#### `getMobHealth(String mobId, Player player)`

The max health the mob would spawn with for that player — the `health` expression of the file resolved with the player's placeholders. `0` for an unknown id.

#### `getRespawnTicks(String mobId)`

The mob's own `respawn-time`; `-1` means the zone's default.

#### `reload()`

Re-reads every mob file.
