mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-02 11:22:01 +01:00
Added World.getPlayers
By: Tanel Suurhans <tanel.suurhans@perfectline.ee>
This commit is contained in:
parent
2e97b270d4
commit
a7d6c7c660
@ -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…
Reference in New Issue
Block a user