ICommand .java

net.minecraft.command.ICommand (interface, 37 lines): members: getCommandAliases, canCommandSenderUseCommand, isUsernameIndex, addTabCompletionOptions.

net.minecraft.commandinterface37 linescommonextends Comparable<ICommand>945 B

API Surface (0)

No public/protected methods detected (fields or constants only).

Code Graph: Dependencies (2)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

ICommand.java37 lines · MCP 1.8.9 · verbatimOriginal ↗
1
package net.minecraft.command;
2
3
import java.util.List;
4
import net.minecraft.util.BlockPos;
5
6
public interface ICommand extends Comparable<ICommand>
7
{
8
    /**
9
     * Gets the name of the command
10
     */
11
    String getCommandName();
12
13
    /**
14
     * Gets the usage string for the command.
15
     */
16
    String getCommandUsage(ICommandSender sender);
17
18
    List<String> getCommandAliases();
19
20
    /**
21
     * Callback when the command is invoked
22
     */
23
    void processCommand(ICommandSender sender, String[] args) throws CommandException;
24
25
    /**
26
     * Returns true if the given command sender is allowed to use this command.
27
     */
28
    boolean canCommandSenderUseCommand(ICommandSender sender);
29
30
    List<String> addTabCompletionOptions(ICommandSender sender, String[] args, BlockPos pos);
31
32
    /**
33
     * Return whether the specified command parameter index is a username parameter.
34
     */
35
    boolean isUsernameIndex(String[] args, int index);
36
}
37

Deobfuscated MCP 1.8.9 source of ICommand from Marcelektro/MavenMCP-1.8.9 (net/minecraft/command/ICommand.java), stored verbatim.