mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-12-03 23:43:21 +01:00
20 lines
386 B
Java
20 lines
386 B
Java
|
package com.Acrobot.Breeze.Utils;
|
||
|
|
||
|
import org.bukkit.block.Block;
|
||
|
import org.bukkit.block.Sign;
|
||
|
|
||
|
/**
|
||
|
* @author Acrobot
|
||
|
*/
|
||
|
public class BlockUtil {
|
||
|
/**
|
||
|
* Checks if the block is a sign
|
||
|
*
|
||
|
* @param block Block to check
|
||
|
* @return Is this block a sign?
|
||
|
*/
|
||
|
public static boolean isSign(Block block) {
|
||
|
return block.getState() instanceof Sign;
|
||
|
}
|
||
|
}
|