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 booleancenterIntegersprivate static Collection<String>EXAMPLESstatic com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeINCOMPLETE_EXCEPTION -
Constructor Summary
Constructors Constructor Description Vec2ArgumentType(boolean centerIntegers) -
Method Summary
Modifier and Type Method Description Collection<String>getExamples()static Vec2fgetVec2(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)PosArgumentparse(com.mojang.brigadier.StringReader stringReader)static Vec2ArgumentTypevec2()
-
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:
parsein 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:
listSuggestionsin interfacecom.mojang.brigadier.arguments.ArgumentType<PosArgument>
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<PosArgument>
-