Class CoordinateArgument

java.lang.Object
net.minecraft.command.argument.CoordinateArgument

public class CoordinateArgument extends Object
Mappings:
Namespace Name
official fc
intermediary net/minecraft/class_2278
named net/minecraft/command/argument/CoordinateArgument
  • Field Details

    • field_32972

      private static final char field_32972
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official c Lfc;c:C
      intermediary field_32972 Lnet/minecraft/class_2278;field_32972:C
      named field_32972 Lnet/minecraft/command/argument/CoordinateArgument;field_32972:C
    • MISSING_COORDINATE

      public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType MISSING_COORDINATE
      Mappings:
      Namespace Name Mixin selector
      official a Lfc;a:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      intermediary field_10759 Lnet/minecraft/class_2278;field_10759:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      named MISSING_COORDINATE Lnet/minecraft/command/argument/CoordinateArgument;MISSING_COORDINATE:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
    • MISSING_BLOCK_POSITION

      public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType MISSING_BLOCK_POSITION
      Mappings:
      Namespace Name Mixin selector
      official b Lfc;b:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      intermediary field_10761 Lnet/minecraft/class_2278;field_10761:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      named MISSING_BLOCK_POSITION Lnet/minecraft/command/argument/CoordinateArgument;MISSING_BLOCK_POSITION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
    • relative

      private final boolean relative
      Mappings:
      Namespace Name Mixin selector
      official d Lfc;d:Z
      intermediary field_10760 Lnet/minecraft/class_2278;field_10760:Z
      named relative Lnet/minecraft/command/argument/CoordinateArgument;relative:Z
    • value

      private final double value
      Mappings:
      Namespace Name Mixin selector
      official e Lfc;e:D
      intermediary field_10758 Lnet/minecraft/class_2278;field_10758:D
      named value Lnet/minecraft/command/argument/CoordinateArgument;value:D
  • Constructor Details

    • CoordinateArgument

      public CoordinateArgument(boolean relative, double value)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfc;<init>(ZD)V
      intermediary <init> Lnet/minecraft/class_2278;<init>(ZD)V
      named <init> Lnet/minecraft/command/argument/CoordinateArgument;<init>(ZD)V
  • Method Details

    • toAbsoluteCoordinate

      public double toAbsoluteCoordinate(double offset)
      Mappings:
      Namespace Name Mixin selector
      official a Lfc;a(D)D
      intermediary method_9740 Lnet/minecraft/class_2278;method_9740(D)D
      named toAbsoluteCoordinate Lnet/minecraft/command/argument/CoordinateArgument;toAbsoluteCoordinate(D)D
    • parse

      public static CoordinateArgument parse(com.mojang.brigadier.StringReader reader, boolean centerIntegers) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lfc;a(Lcom/mojang/brigadier/StringReader;Z)Lfc;
      intermediary method_9743 Lnet/minecraft/class_2278;method_9743(Lcom/mojang/brigadier/StringReader;Z)Lnet/minecraft/class_2278;
      named parse Lnet/minecraft/command/argument/CoordinateArgument;parse(Lcom/mojang/brigadier/StringReader;Z)Lnet/minecraft/command/argument/CoordinateArgument;
    • parse

      public static CoordinateArgument parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lfc;a(Lcom/mojang/brigadier/StringReader;)Lfc;
      intermediary method_9739 Lnet/minecraft/class_2278;method_9739(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2278;
      named parse Lnet/minecraft/command/argument/CoordinateArgument;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/CoordinateArgument;
    • isRelative

      public static boolean isRelative(com.mojang.brigadier.StringReader reader)
      Mappings:
      Namespace Name Mixin selector
      official b Lfc;b(Lcom/mojang/brigadier/StringReader;)Z
      intermediary method_9742 Lnet/minecraft/class_2278;method_9742(Lcom/mojang/brigadier/StringReader;)Z
      named isRelative Lnet/minecraft/command/argument/CoordinateArgument;isRelative(Lcom/mojang/brigadier/StringReader;)Z
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Lfc;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_2278;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/command/argument/CoordinateArgument;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • isRelative

      public boolean isRelative()
      Mappings:
      Namespace Name Mixin selector
      official a Lfc;a()Z
      intermediary method_9741 Lnet/minecraft/class_2278;method_9741()Z
      named isRelative Lnet/minecraft/command/argument/CoordinateArgument;isRelative()Z