public class AngleArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<AngleArgumentType.Angle>
Modifier and Type | Class and Description |
---|---|
static class |
AngleArgumentType.Angle |
Modifier and Type | Field and Description |
---|---|
private static Collection<String> |
EXAMPLES |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
INCOMPLETE_ANGLE_EXCEPTION |
Constructor and Description |
---|
AngleArgumentType() |
Modifier and Type | Method and Description |
---|---|
static AngleArgumentType |
angle() |
static float |
getAngle(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context,
String name) |
Collection<String> |
getExamples() |
AngleArgumentType.Angle |
parse(com.mojang.brigadier.StringReader stringReader) |
private static final Collection<String> EXAMPLES
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INCOMPLETE_ANGLE_EXCEPTION
public static AngleArgumentType angle()
public static float getAngle(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
public AngleArgumentType.Angle parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
parse
in interface com.mojang.brigadier.arguments.ArgumentType<AngleArgumentType.Angle>
com.mojang.brigadier.exceptions.CommandSyntaxException
public Collection<String> getExamples()
getExamples
in interface com.mojang.brigadier.arguments.ArgumentType<AngleArgumentType.Angle>