Package net.createmod.catnip.net
Class ConfigPathArgument
java.lang.Object
net.createmod.catnip.net.ConfigPathArgument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<ConfigHelper.ConfigPath>
public class ConfigPathArgument
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<ConfigHelper.ConfigPath>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigHelper.ConfigPathgetPath(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context, String name) <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) parse(com.mojang.brigadier.StringReader reader) static ConfigPathArgumentpath()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentType
parse
-
Field Details
-
PARSE_ERROR
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType PARSE_ERROR -
EXAMPLES
-
BASE_SUGGESTIONS
-
-
Constructor Details
-
ConfigPathArgument
public ConfigPathArgument()
-
-
Method Details
-
path
-
getPath
public static ConfigHelper.ConfigPath getPath(com.mojang.brigadier.context.CommandContext<net.minecraft.commands.CommandSourceStack> context, String name) -
listSuggestions
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) - Specified by:
listSuggestionsin interfacecom.mojang.brigadier.arguments.ArgumentType<ConfigHelper.ConfigPath>
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<ConfigHelper.ConfigPath>
-
parse
public ConfigHelper.ConfigPath parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<ConfigHelper.ConfigPath>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-