public class Server
extends java.lang.Object
Constructor and Description |
---|
Server() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<org.bukkit.entity.Player> |
getNearbyPlayers(org.bukkit.World world,
org.bukkit.Location point,
double radius)
Retrieve a list of nearby players.
|
static int |
getXPSplit(int xp) |
static void |
spawnExperience(org.bukkit.World world,
org.bukkit.Location corner,
int amount) |
static void |
spawnExperienceAtBlock(org.bukkit.block.Block block,
int amount) |
static void |
spawnItem(org.bukkit.World world,
org.bukkit.Location corner,
java.util.List<org.bukkit.inventory.ItemStack> items) |
public static void spawnExperienceAtBlock(org.bukkit.block.Block block, int amount)
public static void spawnExperience(org.bukkit.World world, org.bukkit.Location corner, int amount)
public static void spawnItem(org.bukkit.World world, org.bukkit.Location corner, java.util.List<org.bukkit.inventory.ItemStack> items)
public static int getXPSplit(int xp)
public static java.util.List<org.bukkit.entity.Player> getNearbyPlayers(org.bukkit.World world, org.bukkit.Location point, double radius)
world
- - the world to search in.point
- - the origin point to search from.radius
- - the maximum distance away from the origin point to search in.