001    package org.bukkit.entity.minecart;
002    
003    import org.bukkit.command.CommandSender;
004    import org.bukkit.entity.Minecart;
005    
006    public interface CommandMinecart extends Minecart, CommandSender {
007    
008        /**
009         * Gets the command that this CommandMinecart will run when activated.
010         * This will never return null.  If the CommandMinecart does not have a
011         * command, an empty String will be returned instead.
012         *
013         * @return Command that this CommandMinecart will run when powered.
014         */
015        public String getCommand();
016    
017        /**
018         * Sets the command that this CommandMinecart will run when activated.
019         * Setting the command to null is the same as setting it to an empty
020         * String.
021         *
022         * @param command Command that this CommandMinecart will run when
023         *     activated.
024         */
025        public void setCommand(String command);
026    
027        /**
028         * Sets the name of this CommandMinecart.  The name is used with commands
029         * that this CommandMinecart executes.  Setting the name to null is the
030         * same as setting it to "@".
031         *
032         * @param name New name for this CommandMinecart.
033         */
034        public void setName(String name);
035    
036    }