Package net.minecraft.command.argument
Class Vec2ArgumentType
java.lang.Object
net.minecraft.command.argument.Vec2ArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<PosArgument>
public class Vec2ArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<PosArgument>
-
Field Summary
Fields Modifier and Type Field Description private boolean
centerIntegers
private static Collection<String>
EXAMPLES
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
INCOMPLETE_EXCEPTION
-
Constructor Summary
Constructors Constructor Description Vec2ArgumentType(boolean centerIntegers)
-
Method Summary
Modifier and Type Method Description Collection<String>
getExamples()
static Vec2f
getVec2(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
<S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
PosArgument
parse(com.mojang.brigadier.StringReader stringReader)
static Vec2ArgumentType
vec2()
-
Field Details
-
EXAMPLES
-
INCOMPLETE_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INCOMPLETE_EXCEPTION -
centerIntegers
private final boolean centerIntegers
-
-
Constructor Details
-
Vec2ArgumentType
public Vec2ArgumentType(boolean centerIntegers)
-
-
Method Details
-
vec2
-
getVec2
public static Vec2f getVec2(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) -
parse
public PosArgument parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<PosArgument>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
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:
listSuggestions
in interfacecom.mojang.brigadier.arguments.ArgumentType<PosArgument>
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<PosArgument>
-