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
official du
intermediary net/minecraft/class_5473
named net/minecraft/command/argument/AngleArgumentType
  • Field Details

    • EXAMPLES

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

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

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

    • AngleArgumentType

      public AngleArgumentType()
  • Method Details

    • angle

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

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

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