Added World.getPlayers
This commit is contained in:
parent
0f95f3063a
commit
f03df70557
@ -3,18 +3,9 @@ package org.bukkit;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.bukkit.block.Block;
|
import org.bukkit.block.Block;
|
||||||
|
import org.bukkit.entity.*;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
import org.bukkit.util.Vector;
|
import org.bukkit.util.Vector;
|
||||||
import org.bukkit.entity.Creature;
|
|
||||||
import org.bukkit.entity.CreatureType;
|
|
||||||
import org.bukkit.entity.Entity;
|
|
||||||
import org.bukkit.entity.Item;
|
|
||||||
import org.bukkit.entity.LivingEntity;
|
|
||||||
import org.bukkit.entity.PoweredMinecart;
|
|
||||||
import org.bukkit.entity.Minecart;
|
|
||||||
import org.bukkit.entity.StorageMinecart;
|
|
||||||
import org.bukkit.entity.Arrow;
|
|
||||||
import org.bukkit.entity.Boat;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a world, which may contain entities, chunks and blocks
|
* Represents a world, which may contain entities, chunks and blocks
|
||||||
@ -312,6 +303,13 @@ public interface World {
|
|||||||
*/
|
*/
|
||||||
public List<LivingEntity> getLivingEntities();
|
public List<LivingEntity> getLivingEntities();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get a list of all players in this World
|
||||||
|
*
|
||||||
|
* @return A list of all Players currently residing in this world
|
||||||
|
*/
|
||||||
|
public List<Player> getPlayers();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the unique name of this world
|
* Gets the unique name of this world
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user