public class BlockUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Map<java.lang.Integer,BlockBounds> |
blockBounds |
static java.util.Map<org.bukkit.Material,BoundingBox> |
collisionBoundingBoxes |
Constructor and Description |
---|
BlockUtils() |
Modifier and Type | Method and Description |
---|---|
static org.bukkit.Location |
findGround(org.bukkit.World world,
org.bukkit.Location point) |
static org.bukkit.block.Block |
getBlock(org.bukkit.Location location) |
static java.util.List<BoundingBox> |
getBlockBoundingBox(org.bukkit.block.Block block) |
static java.util.List<org.bukkit.block.Block> |
getBlocks(BoundingBox box,
org.bukkit.World world) |
static boolean |
isBed(org.bukkit.block.Block block) |
static boolean |
isChest(org.bukkit.block.Block block) |
static boolean |
isClimbableBlock(org.bukkit.block.Block block) |
static boolean |
isDoor(org.bukkit.block.Block block) |
static boolean |
isFence(org.bukkit.block.Block block) |
static boolean |
isFenceGate(org.bukkit.block.Block block) |
static boolean |
isIce(org.bukkit.block.Block block) |
static boolean |
isLiquid(org.bukkit.block.Block block) |
static boolean |
isPiston(org.bukkit.block.Block block) |
static boolean |
isSlab(org.bukkit.block.Block block) |
static boolean |
isSolid(org.bukkit.block.Block block) |
static boolean |
isStair(org.bukkit.block.Block block) |
static boolean |
isTool(org.bukkit.inventory.ItemStack stack) |
static boolean |
isTrapDoor(org.bukkit.block.Block block) |
static boolean |
isWall(org.bukkit.block.Block block) |
public static java.util.Map<org.bukkit.Material,BoundingBox> collisionBoundingBoxes
public static java.util.Map<java.lang.Integer,BlockBounds> blockBounds
public static org.bukkit.block.Block getBlock(org.bukkit.Location location)
public static boolean isSolid(org.bukkit.block.Block block)
public static java.util.List<BoundingBox> getBlockBoundingBox(org.bukkit.block.Block block)
public static boolean isLiquid(org.bukkit.block.Block block)
public static boolean isClimbableBlock(org.bukkit.block.Block block)
public static boolean isIce(org.bukkit.block.Block block)
public static boolean isFence(org.bukkit.block.Block block)
public static boolean isDoor(org.bukkit.block.Block block)
public static boolean isBed(org.bukkit.block.Block block)
public static boolean isTrapDoor(org.bukkit.block.Block block)
public static boolean isChest(org.bukkit.block.Block block)
public static boolean isWall(org.bukkit.block.Block block)
public static boolean isPiston(org.bukkit.block.Block block)
public static boolean isFenceGate(org.bukkit.block.Block block)
public static boolean isStair(org.bukkit.block.Block block)
public static boolean isSlab(org.bukkit.block.Block block)
public static boolean isTool(org.bukkit.inventory.ItemStack stack)
public static java.util.List<org.bukkit.block.Block> getBlocks(BoundingBox box, org.bukkit.World world)
public static org.bukkit.Location findGround(org.bukkit.World world, org.bukkit.Location point)