Add mob getters to GameWorld

This commit is contained in:
Daniel Saukel 2020-01-27 19:51:54 +01:00
parent f95f1b8972
commit 12603e9fa3

View File

@ -14,14 +14,16 @@
*/
package de.erethon.dungeonsxl.api.world;
import de.erethon.dungeonsxl.api.Dungeon;
import de.erethon.dungeonsxl.api.game.Game;
import de.erethon.dungeonsxl.api.dungeon.Dungeon;
import de.erethon.dungeonsxl.api.dungeon.Game;
import de.erethon.dungeonsxl.api.mob.DungeonMob;
import java.util.Collection;
import org.bukkit.Location;
/**
* A playable resource instance. There may be any amount of GameWorlds per {@link ResourceWorld}.
* <p>
* A game world is not equal to a {@link de.erethon.dungeonsxl.api.Dungeon}.
* A game world is not equal to a {@link de.erethon.dungeonsxl.api.dungeon.Dungeon}.
*
* @author Daniel Saukel
*/
@ -64,6 +66,27 @@ public interface GameWorld extends InstanceWorld {
*/
Dungeon getDungeon();
/**
* Returns the living dungeon mobs
*
* @return the living dungeon mobs
*/
Collection<DungeonMob> getMobs();
/**
* Registers the given dungeon mob
*
* @param mob the mob
*/
void addMob(DungeonMob mob);
/**
* Unregisters the given dungeon mob
*
* @param mob the mob
*/
public void removeMob(DungeonMob mob);
/**
* Returns if the game has begun in the game world.
*