mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-12-25 17:37:34 +01:00
5908eb67fa
- Copied utilities from ChestShop-4 - Made code really, really nicer to read - Made every external plugin's wrapper a listener, so it listens to events instead of being hard-coded.
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;
|
|
}
|
|
}
|