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>
Mappings:
Namespace Name
named net/minecraft/command/argument/AngleArgumentType
intermediary net/minecraft/class_5473
official ew
  • Field Details

    • EXAMPLES

      private static final Collection<String> EXAMPLES
      Mappings:
      Namespace Name Mixin selector
      named EXAMPLES Lnet/minecraft/command/argument/AngleArgumentType;EXAMPLES:Ljava/util/Collection;
      intermediary field_26369 Lnet/minecraft/class_5473;field_26369:Ljava/util/Collection;
      official c Lew;c:Ljava/util/Collection;
    • INCOMPLETE_ANGLE_EXCEPTION

      public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INCOMPLETE_ANGLE_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      named INCOMPLETE_ANGLE_EXCEPTION Lnet/minecraft/command/argument/AngleArgumentType;INCOMPLETE_ANGLE_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      intermediary field_26368 Lnet/minecraft/class_5473;field_26368:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      official a Lew;a:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
    • INVALID_ANGLE_EXCEPTION

      public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType INVALID_ANGLE_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      named INVALID_ANGLE_EXCEPTION Lnet/minecraft/command/argument/AngleArgumentType;INVALID_ANGLE_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      intermediary field_27345 Lnet/minecraft/class_5473;field_27345:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      official b Lew;b:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
  • Constructor Details

    • AngleArgumentType

      public AngleArgumentType()
  • Method Details

    • angle

      public static AngleArgumentType angle()
      Mappings:
      Namespace Name Mixin selector
      named angle Lnet/minecraft/command/argument/AngleArgumentType;angle()Lnet/minecraft/command/argument/AngleArgumentType;
      intermediary method_30658 Lnet/minecraft/class_5473;method_30658()Lnet/minecraft/class_5473;
      official a Lew;a()Lew;
    • getAngle

      public static float getAngle(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)
      Mappings:
      Namespace Name Mixin selector
      named getAngle Lnet/minecraft/command/argument/AngleArgumentType;getAngle(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)F
      intermediary method_30660 Lnet/minecraft/class_5473;method_30660(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)F
      official a Lew;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/lang/String;)F
    • 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
      Mappings:
      Namespace Name Mixin selector
      named parse Lnet/minecraft/command/argument/AngleArgumentType;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/AngleArgumentType$Angle;
      intermediary method_30659 Lnet/minecraft/class_5473;method_30659(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_5473$class_5474;
      official a Lew;a(Lcom/mojang/brigadier/StringReader;)Lew$a;
    • getExamples

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