Class ModIdArgument
- java.lang.Object
-
- net.minecraftforge.server.command.ModIdArgument
-
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<java.lang.String>
public class ModIdArgument extends java.lang.Object implements com.mojang.brigadier.arguments.ArgumentType<java.lang.String>
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.List<java.lang.String>
EXAMPLES
-
Constructor Summary
Constructors Constructor Description ModIdArgument()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<java.lang.String>
getExamples()
<S> java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
static ModIdArgument
modIdArgument()
java.lang.String
parse(com.mojang.brigadier.StringReader reader)
-
-
-
Method Detail
-
modIdArgument
public static ModIdArgument modIdArgument()
-
parse
public java.lang.String parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<java.lang.String>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
listSuggestions
public <S> java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
- Specified by:
listSuggestions
in interfacecom.mojang.brigadier.arguments.ArgumentType<java.lang.String>
-
getExamples
public java.util.Collection<java.lang.String> getExamples()
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<java.lang.String>
-
-