    001    package net.minecraft.command;
    002
    003    import java.util.List;
    004    import java.util.Map;
    005
    006    public interface ICommandManager
    007    {
    008        void executeCommand(ICommandSender var1, String var2);
    009
    010        /**
    011         * Performs a "begins with" string match on each token in par2. Only returns commands that par1 can use.
    012         */
    013        List getPossibleCommands(ICommandSender var1, String var2);
    014
    015        /**
    016         * returns all commands that the commandSender can use
    017         */
    018        List getPossibleCommands(ICommandSender var1);
    019
    020        /**
    021         * returns a map of string to commads. All commands are returned, not just ones which someone has permission to use.
    022         */
    023        Map getCommands();
    024    }