Search in sources :

Example 1 with Jigsaw

use of org.bukkit.block.data.type.Jigsaw in project Denizen-For-Bukkit by DenizenScript.

the class MaterialDirectional method describes.

public static boolean describes(ObjectTag material) {
    if (!(material instanceof MaterialTag)) {
        return false;
    }
    MaterialTag mat = (MaterialTag) material;
    if (!mat.hasModernData()) {
        return false;
    }
    BlockData data = mat.getModernData();
    return data instanceof Directional || data instanceof Orientable || data instanceof Rotatable || data instanceof Rail || data instanceof Jigsaw || (NMSHandler.getVersion().isAtLeast(NMSVersion.v1_17) && data instanceof PointedDripstone);
}
Also used : MaterialTag(com.denizenscript.denizen.objects.MaterialTag) PointedDripstone(org.bukkit.block.data.type.PointedDripstone) Jigsaw(org.bukkit.block.data.type.Jigsaw)

Aggregations

MaterialTag (com.denizenscript.denizen.objects.MaterialTag)1 Jigsaw (org.bukkit.block.data.type.Jigsaw)1 PointedDripstone (org.bukkit.block.data.type.PointedDripstone)1