001package net.minecraft.command; 002 003import java.util.List; 004import java.util.Map; 005 006public interface ICommandManager 007{ 008 int executeCommand(ICommandSender icommandsender, String s); 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 icommandsender, String s); 014 015 /** 016 * returns all commands that the commandSender can use 017 */ 018 List getPossibleCommands(ICommandSender icommandsender); 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}