Class Vec2Argument
java.lang.Object
net.minecraft.commands.arguments.coordinates.Vec2Argument
- All Implemented Interfaces:
ArgumentType<Coordinates>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanstatic final SimpleCommandExceptionTypeprivate static final Collection<String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Vec2getVec2(CommandContext<CommandSourceStack> context, String name) listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) parse(StringReader reader) static Vec2Argumentvec2()static Vec2Argumentvec2(boolean centerCorrect) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ArgumentType
parse
-
Field Details
-
EXAMPLES
-
ERROR_NOT_COMPLETE
-
centerCorrect
private final boolean centerCorrect
-
-
Constructor Details
-
Vec2Argument
public Vec2Argument(boolean centerCorrect)
-
-
Method Details
-
vec2
-
vec2
-
getVec2
-
parse
- Specified by:
parsein interfaceArgumentType<Coordinates>- Throws:
CommandSyntaxException
-
listSuggestions
public <S> CompletableFuture<Suggestions> listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) - Specified by:
listSuggestionsin interfaceArgumentType<Coordinates>
-
getExamples
- Specified by:
getExamplesin interfaceArgumentType<Coordinates>
-