Class BlockChecker
java.lang.Object
preponderous.ponder.minecraft.bukkit.tools.BlockChecker
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.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.
-
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
Method to get a Material by name.- Returns:
- A
Material
matching the name.
-