Package net.minecraft.command.argument
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 Summary
Fields Modifier and Type Field Description private booleancenterIntegersprivate static Collection<String>EXAMPLESstatic com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeINCOMPLETE_EXCEPTIONstatic com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeMIXED_COORDINATE_EXCEPTION -
Constructor Summary
Constructors Constructor Description Vec3ArgumentType(boolean centerIntegers) -
Method Summary
Modifier and Type Method Description Collection<String>getExamples()static PosArgumentgetPosArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> commandContext, String string)static Vec3dgetVec3(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 Vec3ArgumentTypevec3()static Vec3ArgumentTypevec3(boolean centerIntegers)
-
Field Details
-
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
-
vec3
-
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:
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>
-