Class BaseBrigadierManager<S extends studio.mevera.imperat.context.CommandSource>

java.lang.Object
studio.mevera.imperat.BaseBrigadierManager<S>
All Implemented Interfaces:
BrigadierManager<S>

public abstract non-sealed class BaseBrigadierManager<S extends studio.mevera.imperat.context.CommandSource> extends Object implements BrigadierManager<S>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final studio.mevera.imperat.Imperat<S>
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    BaseBrigadierManager(studio.mevera.imperat.Imperat<S> dispatcher)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected <BS> com.mojang.brigadier.tree.CommandNode<BS>
    convertImperatNodeToBrigadierNode(studio.mevera.imperat.command.tree.LiteralCommandNode<S> rootImperatNode, studio.mevera.imperat.command.tree.CommandNode<S,?> currentImperatNode)
     
    protected com.mojang.brigadier.arguments.StringArgumentType
    getStringArgType(studio.mevera.imperat.command.arguments.Argument<S> parameter)
     
    <BS> com.mojang.brigadier.tree.LiteralCommandNode<BS>
    parseCommandIntoNode(@NotNull studio.mevera.imperat.command.Command<S> command)
    Parses the registered Command to brigadier node

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface studio.mevera.imperat.BrigadierManager

    getArgumentType, wrapCommandSource
  • Field Details

    • dispatcher

      protected final studio.mevera.imperat.Imperat<S extends studio.mevera.imperat.context.CommandSource> dispatcher
  • Constructor Details

    • BaseBrigadierManager

      protected BaseBrigadierManager(studio.mevera.imperat.Imperat<S> dispatcher)
  • Method Details

    • parseCommandIntoNode

      @NotNull public <BS> com.mojang.brigadier.tree.LiteralCommandNode<BS> parseCommandIntoNode(@NotNull @NotNull studio.mevera.imperat.command.Command<S> command)
      Description copied from interface: BrigadierManager
      Parses the registered Command to brigadier node
      Specified by:
      parseCommandIntoNode in interface BrigadierManager<S extends studio.mevera.imperat.context.CommandSource>
      Returns:
      the parsed node
    • convertImperatNodeToBrigadierNode

      protected <BS> com.mojang.brigadier.tree.CommandNode<BS> convertImperatNodeToBrigadierNode(studio.mevera.imperat.command.tree.LiteralCommandNode<S> rootImperatNode, studio.mevera.imperat.command.tree.CommandNode<S,?> currentImperatNode)
    • getStringArgType

      protected com.mojang.brigadier.arguments.StringArgumentType getStringArgType(studio.mevera.imperat.command.arguments.Argument<S> parameter)