Package net.runelite.client.chat
Class ChatCommandManager
- java.lang.Object
-
- net.runelite.client.chat.ChatCommandManager
-
@Singleton public class ChatCommandManager extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onChatboxInput(ChatboxInput chatboxInput)
void
onChatMessage(ChatMessage chatMessage)
void
onPrivateMessageInput(PrivateMessageInput privateMessageInput)
void
registerCommand(String command, BiConsumer<ChatMessage,String> execute)
void
registerCommand(String command, BiConsumer<ChatMessage,String> execute, BiPredicate<ChatInput,String> input)
void
registerCommandAsync(String command, BiConsumer<ChatMessage,String> execute)
void
registerCommandAsync(String command, BiConsumer<ChatMessage,String> execute, BiPredicate<ChatInput,String> input)
void
unregisterCommand(String command)
-
-
-
Method Detail
-
registerCommand
public void registerCommand(String command, BiConsumer<ChatMessage,String> execute)
-
registerCommand
public void registerCommand(String command, BiConsumer<ChatMessage,String> execute, BiPredicate<ChatInput,String> input)
-
registerCommandAsync
public void registerCommandAsync(String command, BiConsumer<ChatMessage,String> execute)
-
registerCommandAsync
public void registerCommandAsync(String command, BiConsumer<ChatMessage,String> execute, BiPredicate<ChatInput,String> input)
-
unregisterCommand
public void unregisterCommand(String command)
-
onChatMessage
@Subscribe public void onChatMessage(ChatMessage chatMessage)
-
onChatboxInput
@Subscribe public void onChatboxInput(ChatboxInput chatboxInput)
-
onPrivateMessageInput
@Subscribe public void onPrivateMessageInput(PrivateMessageInput privateMessageInput)
-
-