Class Vec2Argument
java.lang.Object
net.minecraft.commands.arguments.coordinates.Vec2Argument
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Coordinates>
public class Vec2Argument
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<Coordinates>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final Collection<String>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Vec2
getVec2
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_120826_, String p_120827_) <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
listSuggestions
(com.mojang.brigadier.context.CommandContext<S> p_120830_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_120831_) parse
(com.mojang.brigadier.StringReader p_120824_) static Vec2Argument
vec2()
static Vec2Argument
vec2
(boolean p_174955_)
-
Field Details
-
EXAMPLES
-
ERROR_NOT_COMPLETE
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_NOT_COMPLETE -
centerCorrect
private final boolean centerCorrect
-
-
Constructor Details
-
Vec2Argument
public Vec2Argument(boolean p_120821_)
-
-
Method Details
-
vec2
-
vec2
-
getVec2
public static Vec2 getVec2(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_120826_, String p_120827_) -
parse
public Coordinates parse(com.mojang.brigadier.StringReader p_120824_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<Coordinates>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
listSuggestions
public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> p_120830_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_120831_) - Specified by:
listSuggestions
in interfacecom.mojang.brigadier.arguments.ArgumentType<Coordinates>
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<Coordinates>
-