Class DefaultDispatcher

java.lang.Object
dev.boze.api.addon.command.DefaultDispatcher
All Implemented Interfaces:
AddonDispatcher

public class DefaultDispatcher extends Object implements AddonDispatcher
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.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 ..."

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultDispatcher

      public DefaultDispatcher(String prefix)
  • Method Details

    • getDispatcher

      public com.mojang.brigadier.CommandDispatcher<net.minecraft.command.CommandSource> getDispatcher()
      Specified by:
      getDispatcher in interface AddonDispatcher
      Returns:
      The addon's command dispatcher
    • getPrefix

      public String 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 interface AddonDispatcher
      Returns:
      The addon's command prefix