mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-17 05:41:26 +01:00
Added methods to get a list of entities to World.
By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
parent
6c441c2642
commit
d922f76c36
@ -1,10 +1,13 @@
|
|||||||
|
|
||||||
package org.bukkit;
|
package org.bukkit;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
import org.bukkit.block.Block;
|
import org.bukkit.block.Block;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
import org.bukkit.util.Vector;
|
import org.bukkit.util.Vector;
|
||||||
|
import org.bukkit.entity.Entity;
|
||||||
import org.bukkit.entity.ItemDrop;
|
import org.bukkit.entity.ItemDrop;
|
||||||
|
import org.bukkit.entity.LivingEntity;
|
||||||
import org.bukkit.entity.PoweredMinecart;
|
import org.bukkit.entity.PoweredMinecart;
|
||||||
import org.bukkit.entity.Minecart;
|
import org.bukkit.entity.Minecart;
|
||||||
import org.bukkit.entity.StorageMinecart;
|
import org.bukkit.entity.StorageMinecart;
|
||||||
@ -155,6 +158,20 @@ public interface World {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public Boat spawnBoat(Location loc);
|
public Boat spawnBoat(Location loc);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get a list of all entities.
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public List<Entity> getEntities();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get a list of all living entities.
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public List<LivingEntity> getLivingEntities();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the name of this world. This is not guaranteed to be unique.
|
* Gets the name of this world. This is not guaranteed to be unique.
|
||||||
@ -171,6 +188,7 @@ public interface World {
|
|||||||
* @return Id of this world
|
* @return Id of this world
|
||||||
*/
|
*/
|
||||||
public long getId();
|
public long getId();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the default spawn location.
|
* Gets the default spawn location.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user