Added World.getPlayers

By: Tanel Suurhans <tanel.suurhans@perfectline.ee>
This commit is contained in:
Bukkit/Spigot 2011-02-24 21:37:54 +02:00
parent 2e97b270d4
commit a7d6c7c660

View File

@ -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
* *