Package com.nitnelave.CreeperHeal.block

Examples of com.nitnelave.CreeperHeal.block.BlockId


     *            The block to test.
     * @return Whether the block's type is protected.
     */
    public boolean isProtected(Block block)
    {
        return protectList.getValue().contains(new BlockId(block))
               || (block.getState() instanceof InventoryHolder
                   && CreeperConfig.getBool(CfgVal.REPLACE_PROTECTED_CHESTS) && PluginHandler
                               .isProtected(block));
    }
View Full Code Here


     *            The block to test.
     * @return Whether the block is blacklisted.
     */
    public boolean isGriefBlackListed(Block block)
    {
        return griefPlaceList.getValue().contains(new BlockId(block));
    }
View Full Code Here

        try
        {
            String tmp_str1 = config.getString(name + ".restrict-list", "").trim();
            String[] split = tmp_str1.split(",");
            for (String elem : split)
                restrict_list.add(new BlockId(elem));
        } catch (NumberFormatException e)
        {
            CreeperLog.warning("[CreeperHeal] Wrong values for restrict-list field for world "
                               + name);
            restrict_list.clear();
            restrict_list.add(new BlockId(0));
        }
    }
View Full Code Here

        String[] split = tmp_str1.split(",");
        try
        {
            for (String elem : split)
            {
                BlockId bId = new BlockId(elem);
                if (bId.getId() != 0)
                    set.add(bId);
            }
            return set;
        } catch (NumberFormatException e)
        {
View Full Code Here

        String[] split = tmp_str1.split(",");
        try
        {
            for (String elem : split)
            {
                BlockId bId = new BlockId(elem);
                if (bId.getId() != 0)
                    set.add(bId);
            }
            setValue(set);
        } catch (NumberFormatException e)
        {
View Full Code Here

TOP

Related Classes of com.nitnelave.CreeperHeal.block.BlockId

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.