/*
 * This file is part of Sponge, licensed under the MIT License (MIT).
 *
 * Copyright (c) SpongePowered.org <http://www.spongepowered.org>
 * Copyright (c) contributors
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

package org.spongepowered.api.block;

import com.google.common.base.Optional;
import com.google.common.collect.ImmutableMap;
import org.spongepowered.api.service.persistence.data.DataHolder;

import java.util.Collection;

/**
 * Represents a block using {@link BlockType} and a list of
 * {@link BlockProperty} instances.
 *
 * <p>This interface represents the Mojang interpretation of
 * "block state."</p>
 *
 * <p>States do not refer to extra data, such as chest contents. That is
 * considered extra data and can be accessed via {@link DataHolder}.</p>
 */
public interface BlockState {

    /**
     * Get the base type of block.
     *
     * <p>The type does not include block data such as the contents of
     * inventories.</p>
     *
     * @return The type of block
     */
    BlockType getType();

    /**
     * Get all properties defined on this BlockState, with their current values.
     *
     * @return Map of all current properties
     */
    ImmutableMap<BlockProperty<?>, ? extends Comparable<?>> getProperties();

    /**
     * Gets all property names defined on this BlockState.
     *
     * @return Collection of property names
     */
    Collection<String> getPropertyNames();

    /**
     * Get a property from its name.
     *
     * @param name The name of the property
     * @return The property with the given name or Optional.absent() if not found
     */
    Optional<BlockProperty<?>> getPropertyByName(String name);

    /**
     * Get the current value of a given property.
     *
     * @param name Property to get value of
     * @return Current value of the property or Optional.absent() if not found
     */
    Optional<? extends Comparable<?>> getPropertyValue(String name);

    /**
     * Get an altered BlockState with the given property set to the given value.
     *
     * <p>This does not alter the current BlockState instance</p>
     *
     * @param property Property to change value of
     * @param value New value of property
     * @return A BlockState with the property's value modified
     */
    BlockState withProperty(BlockProperty<?> property, Comparable<?> value);

    /**
     * Get an altered BlockState with the given property set to the next valid
     * value for that property, cycling to the lowest value after the highest
     * value.
     *
     * <p>This does not alter the current BlockState instance</p>
     *
     * @param property Property to change value of
     * @return A BlockState with the property's value modified
     */
    BlockState cycleProperty(BlockProperty<?> property);

    /**
     * Get the data value of the block at the given position.
     *
     * <p>The data value is a number between 0 and 15 (inclusive) that
     * represents a value for differentiation with certain blocks. For example,
     * the base dirt block has a data value that changes the variant of dirt.
     * The base data value is generally 0.</p>
     *
     * <p>However, be aware that data values are being deprecated in
     * Minecraft because they are a waste of bytes and add extra complexity to
     * block differentiation. Most blocks don't use a data value, so that's
     * a waste of four bits of data per block. In the future, there will
     * only be <em>one</em> number to represent each 'state' of a block.</p>
     *
     * @return The data value
     * @deprecated Exists for backwards-compatibility/transitional use
     */
    @Deprecated
    byte getDataValue();

}

@@ -4711,10 +4711,141 @@
 lue();%0A%0A
+    /**%0A     * Checks if this is a flowerpot.%0A     *%0A     * @return Whether this is a flowerpot%0A     */%0A    boolean isFlowerPot();%0A
 %7D%0A

Add isFlowerPot.