Class Vec3ArgumentType

java.lang.Object
net.minecraft.command.argument.Vec3ArgumentType
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<PosArgument>

public class Vec3ArgumentType
extends Object
implements com.mojang.brigadier.arguments.ArgumentType<PosArgument>
  • Field Details

    • EXAMPLES

      private static final Collection<String> EXAMPLES
    • INCOMPLETE_EXCEPTION

      public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INCOMPLETE_EXCEPTION
    • MIXED_COORDINATE_EXCEPTION

      public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType MIXED_COORDINATE_EXCEPTION
    • centerIntegers

      private final boolean centerIntegers
  • Constructor Details

    • Vec3ArgumentType

      public Vec3ArgumentType​(boolean centerIntegers)
  • Method Details

    • vec3

      public static Vec3ArgumentType vec3()
    • vec3

      public static Vec3ArgumentType vec3​(boolean centerIntegers)
    • getVec3

      public static Vec3d getVec3​(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
    • getPosArgument

      public static PosArgument getPosArgument​(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string)
    • parse

      public PosArgument parse​(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.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:
      listSuggestions in interface com.mojang.brigadier.arguments.ArgumentType<PosArgument>
    • getExamples

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