Package net.minecraft.command.argument
Class RotationArgumentType
java.lang.Object
net.minecraft.command.argument.RotationArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<PosArgument>
public class RotationArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<PosArgument>
-
Field Summary
Fields Modifier and Type Field Description private static Collection<String>
EXAMPLES
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
INCOMPLETE_ROTATION_EXCEPTION
-
Constructor Summary
Constructors Constructor Description RotationArgumentType()
-
Method Summary
Modifier and Type Method Description Collection<String>
getExamples()
static PosArgument
getRotation(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
PosArgument
parse(com.mojang.brigadier.StringReader stringReader)
static RotationArgumentType
rotation()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mojang.brigadier.arguments.ArgumentType
listSuggestions
-
Field Details
-
EXAMPLES
-
INCOMPLETE_ROTATION_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INCOMPLETE_ROTATION_EXCEPTION
-
-
Constructor Details
-
RotationArgumentType
public RotationArgumentType()
-
-
Method Details
-
rotation
-
getRotation
public static PosArgument getRotation(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) -
parse
public PosArgument parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Specified by:
parse
in interfacecom.mojang.brigadier.arguments.ArgumentType<PosArgument>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getExamples
- Specified by:
getExamples
in interfacecom.mojang.brigadier.arguments.ArgumentType<PosArgument>
-