Class BlockChecker

java.lang.Object
preponderous.ponder.minecraft.bukkit.tools.BlockChecker

public class BlockChecker extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.Material
    compatMaterial​(String materialName)
    Method to get a Material by name.
    boolean
    isAnvil​(org.bukkit.block.Block block)
    Method to check whether or not the block is an anvil.
    boolean
    isBarrel​(org.bukkit.block.Block block)
    Method to check whether or not the block is an anvil.
    boolean
    isChest​(org.bukkit.block.Block block)
    Method to check whether or not the block is a chest.
    boolean
    isDoor​(org.bukkit.block.Block block)
    Method to check whether or not the block is a door.
    boolean
    isFurnace​(org.bukkit.block.Block block)
    Method to check whether or not the block is a furnace.
    boolean
    isGate​(org.bukkit.block.Block block)
    Method to check whether or not the block is a gate.
    boolean
    isTrapdoor​(org.bukkit.block.Block block)
    Method to check whether or not the block is a trapdoor.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BlockChecker

      public BlockChecker()
  • Method Details

    • isChest

      public boolean isChest(org.bukkit.block.Block block)
      Method to check whether or not the block is a chest.
      Returns:
      A boolean signifying whether or not the block is a chest.
    • isDoor

      public boolean isDoor(org.bukkit.block.Block block)
      Method to check whether or not the block is a door.
      Returns:
      A boolean signifying whether or not the block is a door.
    • isTrapdoor

      public boolean isTrapdoor(org.bukkit.block.Block block)
      Method to check whether or not the block is a trapdoor.
      Returns:
      A boolean signifying whether or not the block is a trapdoor.
    • isFurnace

      public boolean isFurnace(org.bukkit.block.Block block)
      Method to check whether or not the block is a furnace.
      Returns:
      A boolean signifying whether or not the block is a furnace.
    • isAnvil

      public boolean isAnvil(org.bukkit.block.Block block)
      Method to check whether or not the block is an anvil.
      Returns:
      A boolean signifying whether or not the block is an anvil.
    • isGate

      public boolean isGate(org.bukkit.block.Block block)
      Method to check whether or not the block is a gate.
      Returns:
      A boolean signifying whether or not the block is a gate.
    • isBarrel

      public boolean isBarrel(org.bukkit.block.Block block)
      Method to check whether or not the block is an anvil.
      Returns:
      A boolean signifying whether or not the block is an anvil.
    • compatMaterial

      public org.bukkit.Material compatMaterial(String materialName)
      Method to get a Material by name.
      Returns:
      A Material matching the name.