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>
  • Field Details

    • EXAMPLES

      private static final Collection<String> EXAMPLES
    • INCOMPLETE_ANGLE_EXCEPTION

      public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INCOMPLETE_ANGLE_EXCEPTION
  • Constructor Details

    • AngleArgumentType

      public AngleArgumentType()
  • Method Details

    • angle

      public static AngleArgumentType 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:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<AngleArgumentType.Angle>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getExamples

      public Collection<String> getExamples()
      Specified by:
      getExamples in interface com.mojang.brigadier.arguments.ArgumentType<AngleArgumentType.Angle>