/*
 * 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.tile.data;

import com.google.common.base.Optional;
import org.spongepowered.api.block.tile.CommandBlock;
import org.spongepowered.api.text.Text;

/**
 * Represents all mutable data associated with a {@link CommandBlock}.
 */
public interface CommandData extends TileEntityData<CommandBlock, CommandData> {

    /**
     * Gets the currently stored command.
     *
     * @return The command
     */
    String getStoredCommand();

    /**
     * Sets the currently stored command.
     *
     * @param command The new command
     */
    void setStoredCommand(String command);

    /**
     * Gets the success count of the last executed command.
     * <p>
     * The success count is the number of times the most recently used command
     * of this command block succeeded.
     * </p>
     * <p>
     * Most commands can only succeed once per execution, but certain commands
     * (such as those which accept players as arguments) can succeed multiple
     * times, and this value will be set accordingly.
     * </p>
     * <p>
     * This success count can also be polled via a redstone comparator.
     * </p>
     *
     * @return The last success count
     */
    int getSuccessCount();

    /**
     * Sets the last success count for this command block.
     *
     * @param count The new success count
     * @see #getSuccessCount()
     */
    void setSuccessCount(int count);

    /**
     * Gets whether this command block will keep track of the output from the
     * last command it executed.
     *
     * @return Whether the command output is tracked
     */
    boolean doesTrackOutput();

    /**
     * Sets whether this command block should track the output from future
     * commands that it executes.
     *
     * @param track Whether the command outputs should be tracked
     */
    void shouldTrackOutput(boolean track);

    /**
     * Gets the last command output.
     * <p>
     * This will only be available if {@link #doesTrackOutput()} is set to true,
     * otherwise {@link Optional#absent()} will be returned.
     * </p>
     *
     * @return The last command output, if available
     */
    Optional<Text> getLastOutput();

    /**
     * Sets the last output message.
     *
     * @param message The new message
     */
    void setLastOutput(Text message);

}

@@ -3586,10 +3586,141 @@
 sage);%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.