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 Details

    • EXAMPLES

      private static final Collection<String> EXAMPLES
    • INCOMPLETE_ROTATION_EXCEPTION

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

    • RotationArgumentType

      public RotationArgumentType()
  • Method Details

    • rotation

      public static RotationArgumentType 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 interface com.mojang.brigadier.arguments.ArgumentType<PosArgument>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getExamples

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