public class RotationArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<PosArgument>
| Modifier and Type | Field and Description |
|---|---|
private static Collection<String> |
EXAMPLES |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
INCOMPLETE_ROTATION_EXCEPTION |
| Constructor and Description |
|---|
RotationArgumentType() |
| Modifier and Type | Method and 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() |
private static final Collection<String> EXAMPLES
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INCOMPLETE_ROTATION_EXCEPTION
public static RotationArgumentType rotation()
public static PosArgument getRotation(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public PosArgument parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse in interface com.mojang.brigadier.arguments.ArgumentType<PosArgument>com.mojang.brigadier.exceptions.CommandSyntaxExceptionpublic Collection<String> getExamples()
getExamples in interface com.mojang.brigadier.arguments.ArgumentType<PosArgument>