Class ComponentArgument
java.lang.Object
com.mrivanplays.ivancord.api.command.arguments.ComponentArgument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<BaseComponent[]>
public class ComponentArgument
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<BaseComponent[]>
A BungeeCord implementation of the minecraft:component argument
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
-
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentArgument
static BaseComponent[]
getComponent
(com.mojang.brigadier.context.CommandContext<?> context, String argName) parse
(com.mojang.brigadier.StringReader reader) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mojang.brigadier.arguments.ArgumentType
listSuggestions
-
Field Details
-
ERROR_INVALID_JSON
public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_INVALID_JSON
-
-
Method Details
-
getComponent
public static BaseComponent[] getComponent(com.mojang.brigadier.context.CommandContext<?> context, String argName) -
component
-
parse
public BaseComponent[] parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<BaseComponent[]>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<BaseComponent[]>
-