Class CoordinateArgument

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

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

    • TILDE

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

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

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

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

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

    • CoordinateArgument

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

    • toAbsoluteCoordinate

      public double toAbsoluteCoordinate(double offset)
      Mappings:
      Namespace Name Mixin selector
      named toAbsoluteCoordinate Lnet/minecraft/command/argument/CoordinateArgument;toAbsoluteCoordinate(D)D
      intermediary method_9740 Lnet/minecraft/class_2278;method_9740(D)D
      official a Lha;a(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
      named parse Lnet/minecraft/command/argument/CoordinateArgument;parse(Lcom/mojang/brigadier/StringReader;Z)Lnet/minecraft/command/argument/CoordinateArgument;
      intermediary method_9743 Lnet/minecraft/class_2278;method_9743(Lcom/mojang/brigadier/StringReader;Z)Lnet/minecraft/class_2278;
      official a Lha;a(Lcom/mojang/brigadier/StringReader;Z)Lha;
    • 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
      named parse Lnet/minecraft/command/argument/CoordinateArgument;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/command/argument/CoordinateArgument;
      intermediary method_9739 Lnet/minecraft/class_2278;method_9739(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2278;
      official a Lha;a(Lcom/mojang/brigadier/StringReader;)Lha;
    • isRelative

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

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

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

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