Package net.minecraft.command.argument
Class AngleArgumentType
java.lang.Object
net.minecraft.command.argument.AngleArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<AngleArgumentType.Angle>
public class AngleArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<AngleArgumentType.Angle>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAngleArgumentType.Angle -
Field Summary
Fields Modifier and Type Field Description private static Collection<String>EXAMPLESstatic com.mojang.brigadier.exceptions.SimpleCommandExceptionTypefield_27345static com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeINCOMPLETE_ANGLE_EXCEPTION -
Constructor Summary
Constructors Constructor Description AngleArgumentType() -
Method Summary
Modifier and Type Method Description static AngleArgumentTypeangle()static floatgetAngle(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)Collection<String>getExamples()AngleArgumentType.Angleparse(com.mojang.brigadier.StringReader stringReader)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentType
listSuggestions
-
Field Details
-
EXAMPLES
-
INCOMPLETE_ANGLE_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INCOMPLETE_ANGLE_EXCEPTION -
field_27345
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType field_27345
-
-
Constructor Details
-
AngleArgumentType
public AngleArgumentType()
-
-
Method Details
-
angle
-
getAngle
public static float getAngle(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) -
parse
public AngleArgumentType.Angle parse(com.mojang.brigadier.StringReader stringReader) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Specified by:
parsein interfacecom.mojang.brigadier.arguments.ArgumentType<AngleArgumentType.Angle>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getExamples
- Specified by:
getExamplesin interfacecom.mojang.brigadier.arguments.ArgumentType<AngleArgumentType.Angle>
-