Package dev.boze.api.addon.command
Class DefaultDispatcher
java.lang.Object
dev.boze.api.addon.command.DefaultDispatcher
- All Implemented Interfaces:
AddonDispatcher
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.brigadier.CommandDispatcher
<net.minecraft.command.CommandSource> Notice: This is not the same as the command prefix in the config, this is the prefix for the addon's commands All commands must still start with the global command prefix, followed by the addon prefix (without space) For example, for a command "example" with addon prefix "ex", the command would be ".ex-example ..."
-
Constructor Details
-
DefaultDispatcher
-
-
Method Details
-
getDispatcher
public com.mojang.brigadier.CommandDispatcher<net.minecraft.command.CommandSource> getDispatcher()- Specified by:
getDispatcher
in interfaceAddonDispatcher
- Returns:
- The addon's command dispatcher
-
getPrefix
Description copied from interface:AddonDispatcher
Notice: This is not the same as the command prefix in the config, this is the prefix for the addon's commands All commands must still start with the global command prefix, followed by the addon prefix (without space) For example, for a command "example" with addon prefix "ex", the command would be ".ex-example ..."- Specified by:
getPrefix
in interfaceAddonDispatcher
- Returns:
- The addon's command prefix
-