public class BukkitUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BukkitUtils.ItemStackComparator |
Constructor and Description |
---|
BukkitUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canFall(org.bukkit.World world,
int x,
int y,
int z) |
static org.bukkit.inventory.ItemStack[] |
compareInventories(org.bukkit.inventory.ItemStack[] items1,
org.bukkit.inventory.ItemStack[] items2) |
static org.bukkit.inventory.ItemStack[] |
compressInventory(org.bukkit.inventory.ItemStack[] items) |
static String |
entityName(org.bukkit.entity.Entity entity) |
static boolean |
equalTypes(int type1,
int type2) |
static String |
friendlyWorldname(String worldName) |
static Set<Set<Integer>> |
getBlockEquivalents() |
static List<org.bukkit.Location> |
getBlocksNearby(org.bukkit.block.Block block,
Set<org.bukkit.Material> type)
Returns a list of block locations around the block that are of the type specified by the integer list parameter
|
static Set<org.bukkit.Material> |
getContainerBlocks() |
static Set<org.bukkit.Material> |
getCropBlocks() |
static Set<org.bukkit.Material> |
getFallingEntityKillers() |
static org.bukkit.Location |
getInventoryHolderLocation(org.bukkit.inventory.InventoryHolder holder) |
static int |
getInventoryHolderType(org.bukkit.inventory.InventoryHolder holder) |
static Set<org.bukkit.Material> |
getRelativeBreakables() |
static Set<org.bukkit.Material> |
getRelativeTopBreakabls() |
static Set<org.bukkit.Material> |
getRelativeTopFallables() |
static void |
giveTool(org.bukkit.entity.Player player,
int type) |
static boolean |
isTop(org.bukkit.Material mat,
byte data) |
static int |
itemIDfromProjectileEntity(org.bukkit.entity.Entity e) |
static int |
modifyContainer(org.bukkit.block.BlockState b,
org.bukkit.inventory.ItemStack item) |
static short |
rawData(org.bukkit.inventory.ItemStack item) |
static int |
saveSpawnHeight(org.bukkit.Location loc) |
public static List<org.bukkit.Location> getBlocksNearby(org.bukkit.block.Block block, Set<org.bukkit.Material> type)
block
- The central block to get the blocks aroundtype
- The type of blocks around the center block to returnpublic static boolean isTop(org.bukkit.Material mat, byte data)
public static int getInventoryHolderType(org.bukkit.inventory.InventoryHolder holder)
public static org.bukkit.Location getInventoryHolderLocation(org.bukkit.inventory.InventoryHolder holder)
public static org.bukkit.inventory.ItemStack[] compareInventories(org.bukkit.inventory.ItemStack[] items1, org.bukkit.inventory.ItemStack[] items2)
public static org.bukkit.inventory.ItemStack[] compressInventory(org.bukkit.inventory.ItemStack[] items)
public static boolean equalTypes(int type1, int type2)
public static Set<org.bukkit.Material> getRelativeBreakables()
public static Set<org.bukkit.Material> getRelativeTopBreakabls()
public static Set<org.bukkit.Material> getRelativeTopFallables()
public static Set<org.bukkit.Material> getFallingEntityKillers()
public static Set<org.bukkit.Material> getCropBlocks()
public static Set<org.bukkit.Material> getContainerBlocks()
public static String entityName(org.bukkit.entity.Entity entity)
public static void giveTool(org.bukkit.entity.Player player, int type)
public static short rawData(org.bukkit.inventory.ItemStack item)
public static int saveSpawnHeight(org.bukkit.Location loc)
public static int modifyContainer(org.bukkit.block.BlockState b, org.bukkit.inventory.ItemStack item)
public static boolean canFall(org.bukkit.World world, int x, int y, int z)
public static int itemIDfromProjectileEntity(org.bukkit.entity.Entity e)
Copyright © 2015. All rights reserved.