Class Command
java.lang.Object
de.ellpeck.rockbottom.api.net.chat.Command
-
Constructor Summary
ConstructorsConstructorDescriptionCommand(ResourceName name, String description, int level) Command(ResourceName name, String description, int level, String... triggers) -
Method Summary
Modifier and TypeMethodDescriptionabstract ChatComponentexecute(String[] args, ICommandSender sender, String playerName, IGameInstance game, IChatLog chat) getAutocompleteSuggestions(String[] args, int argNumber, ICommandSender sender, IGameInstance game, IChatLog chat) intgetLevel()intgetName()String[]register()
-
Constructor Details
-
Command
-
Command
-
-
Method Details
-
getName
-
getDescription
-
getTriggers
-
getLevel
public int getLevel() -
register
-
getMaxArgumentAmount
public int getMaxArgumentAmount() -
execute
public abstract ChatComponent execute(String[] args, ICommandSender sender, String playerName, IGameInstance game, IChatLog chat) -
getAutocompleteSuggestions
public List<String> getAutocompleteSuggestions(String[] args, int argNumber, ICommandSender sender, IGameInstance game, IChatLog chat)
-