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 Details

    • EXAMPLES

      private static final Collection<String> 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

      public static Vec2Argument vec2()
    • vec2

      public static Vec2Argument vec2(boolean p_174955_)
    • 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 interface com.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 interface com.mojang.brigadier.arguments.ArgumentType<Coordinates>
    • getExamples

      public Collection<String> getExamples()
      Specified by:
      getExamples in interface com.mojang.brigadier.arguments.ArgumentType<Coordinates>