Package studio.mevera.imperat
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 -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseBrigadierManager(studio.mevera.imperat.Imperat<S> dispatcher) -
Method Summary
Modifier and TypeMethodDescriptionprotected <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.StringArgumentTypegetStringArgType(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 registeredCommandto brigadier nodeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
-
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:BrigadierManagerParses the registeredCommandto brigadier node- Specified by:
parseCommandIntoNodein interfaceBrigadierManager<S extends studio.mevera.imperat.context.CommandSource>- Returns:
- the parsed node
-
convertImperatNodeToBrigadierNode
-
getStringArgType
protected com.mojang.brigadier.arguments.StringArgumentType getStringArgType(studio.mevera.imperat.command.arguments.Argument<S> parameter)
-