mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-02 17:00:19 +01:00
Add mob getters to GameWorld
This commit is contained in:
parent
f95f1b8972
commit
12603e9fa3
@ -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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user