mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-02 17:32:03 +01:00
Added World.getPlayers
By: Tanel Suurhans <tanel.suurhans@perfectline.ee>
This commit is contained in:
parent
2e97b270d4
commit
a7d6c7c660
1 changed files with 8 additions and 10 deletions
|
@ -3,18 +3,9 @@ package org.bukkit;
|
|||
|
||||
import java.util.List;
|
||||
import org.bukkit.block.Block;
|
||||
import org.bukkit.entity.*;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
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
|
||||
|
@ -312,6 +303,13 @@ public interface World {
|
|||
*/
|
||||
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
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue