@@ -0,0 +1,1512 @@
+/*%0A * Copyright (c) 2013 - 2015 xxyy (Philipp Nowak; devnull@nowak-at.net). All rights reserved.%0A *%0A * Any usage, including, but not limited to, compiling, running, redistributing, printing,%0A *  copying and reverse-engineering is strictly prohibited without explicit written permission%0A *  from the original author and may result in legal steps being taken.%0A *%0A * See the included LICENSE file (core/src/main/resources) or email xxyy98+xyclicense@gmail.com for details.%0A */%0A%0Apackage io.github.xxyy.common.util;%0A%0Aimport org.apache.commons.lang.Validate;%0Aimport org.bukkit.DyeColor;%0Aimport org.bukkit.block.Block;%0Aimport org.bukkit.material.MaterialData;%0Aimport org.bukkit.material.Wool;%0A%0A/**%0A * provides static utility methods for dealing with blocks.%0A *%0A * @author %3Ca href=%22http://xxyy.github.io/%22%3Exxyy%3C/a%3E%0A * @since 05/01/15%0A */%0Apublic final class BlockHelper %7B%0A    private BlockHelper() %7B%0A%0A    %7D%0A%0A    /**%0A     * Updates a block's wool color.%0A     * @param block the wool block to update%0A     * @param color the color to set%0A     * @return the input block%0A     * @throws java.lang.IllegalArgumentException if block is not wool%0A     */%0A    public static Block updateWoolColor(Block block, DyeColor color) %7B%0A        MaterialData data = block.getState().getData();%0A        Validate.isTrue(data instanceof Wool, %22Can only set wool color%22);%0A        //noinspection ConstantConditions%0A        Wool wool = (Wool) data;%0A        wool.setColor(color);%0A        block.getState().setData(wool);%0A        return block;%0A    %7D%0A%7D%0A

Add BlockHelper