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>
- Mappings:
- Namespace - Name - named - net/minecraft/command/argument/Vec2ArgumentType- intermediary - net/minecraft/class_2274- official - gz
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final booleanprivate static final Collection<String> static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic 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) parse(com.mojang.brigadier.StringReader stringReader) static Vec2ArgumentTypevec2()static Vec2ArgumentTypevec2(boolean centerIntegers) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentTypeparse
- 
Field Details- 
EXAMPLES- Mappings:
- Namespace - Name - Mixin selector - named - EXAMPLES- Lnet/minecraft/command/argument/Vec2ArgumentType;EXAMPLES:Ljava/util/Collection;- intermediary - field_10742- Lnet/minecraft/class_2274;field_10742:Ljava/util/Collection;- official - b- Lgz;b:Ljava/util/Collection;
 
- 
INCOMPLETE_EXCEPTIONpublic static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INCOMPLETE_EXCEPTION- Mappings:
- Namespace - Name - Mixin selector - named - INCOMPLETE_EXCEPTION- Lnet/minecraft/command/argument/Vec2ArgumentType;INCOMPLETE_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;- intermediary - field_10743- Lnet/minecraft/class_2274;field_10743:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;- official - a- Lgz;a:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
 
- 
centerIntegersprivate final boolean centerIntegers- Mappings:
- Namespace - Name - Mixin selector - named - centerIntegers- Lnet/minecraft/command/argument/Vec2ArgumentType;centerIntegers:Z- intermediary - field_10744- Lnet/minecraft/class_2274;field_10744:Z- official - c- Lgz;c:Z
 
 
- 
- 
Constructor Details- 
Vec2ArgumentTypepublic Vec2ArgumentType(boolean centerIntegers) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/command/argument/Vec2ArgumentType;<init>(Z)V- intermediary - <init>- Lnet/minecraft/class_2274;<init>(Z)V- official - <init>- Lgz;<init>(Z)V
 
 
- 
- 
Method Details- 
vec2- Mappings:
- Namespace - Name - Mixin selector - named - vec2- Lnet/minecraft/command/argument/Vec2ArgumentType;vec2()Lnet/minecraft/command/argument/Vec2ArgumentType;- intermediary - method_9723- Lnet/minecraft/class_2274;method_9723()Lnet/minecraft/class_2274;- official - a- Lgz;a()Lgz;
 
- 
vec2- Mappings:
- Namespace - Name - Mixin selector - named - vec2- Lnet/minecraft/command/argument/Vec2ArgumentType;vec2(Z)Lnet/minecraft/command/argument/Vec2ArgumentType;- intermediary - method_35802- Lnet/minecraft/class_2274;method_35802(Z)Lnet/minecraft/class_2274;- official - a- Lgz;a(Z)Lgz;
 
- 
getVec2public static Vec2f getVec2(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) - Mappings:
- Namespace - Name - Mixin selector - named - getVec2- Lnet/minecraft/command/argument/Vec2ArgumentType;getVec2(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/util/math/Vec2f;- intermediary - method_9724- Lnet/minecraft/class_2274;method_9724(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lnet/minecraft/class_241;- official - a- Lgz;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)Lfba;
 
- 
parsepublic PosArgument parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
- parsein interface- com.mojang.brigadier.arguments.ArgumentType<PosArgument>
- Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - parse- Lnet/minecraft/command/argument/Vec2ArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/PosArgument;- intermediary - method_9725- Lnet/minecraft/class_2274;method_9725(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2267;- official - a- Lgz;a(Lcom/mojang/brigadier/StringReader;)Lgv;
 
- 
listSuggestionspublic <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) - Specified by:
- listSuggestionsin interface- com.mojang.brigadier.arguments.ArgumentType<PosArgument>
- Mappings:
- Namespace - Name - Mixin selector - named - listSuggestions- Lnet/minecraft/command/argument/Vec2ArgumentType;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;- intermediary - listSuggestions- Lnet/minecraft/class_2274;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;- official - listSuggestions- Lgz;listSuggestions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
 
- 
getExamples- Specified by:
- getExamplesin interface- com.mojang.brigadier.arguments.ArgumentType<PosArgument>
 
 
-