Class WorldCoordinate

java.lang.Object
net.minecraft.commands.arguments.coordinates.WorldCoordinate

public class WorldCoordinate extends Object
  • Field Details

    • PREFIX_RELATIVE

      private static final char PREFIX_RELATIVE
      See Also:
      Constant Field Values
    • ERROR_EXPECTED_DOUBLE

      public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_EXPECTED_DOUBLE
    • ERROR_EXPECTED_INT

      public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_EXPECTED_INT
    • relative

      private final boolean relative
    • value

      private final double value
  • Constructor Details

    • WorldCoordinate

      public WorldCoordinate(boolean p_120864_, double p_120865_)
  • Method Details

    • get

      public double get(double p_120868_)
    • parseDouble

      public static WorldCoordinate parseDouble(com.mojang.brigadier.StringReader p_120872_, boolean p_120873_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • parseInt

      public static WorldCoordinate parseInt(com.mojang.brigadier.StringReader p_120870_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • isRelative

      public static boolean isRelative(com.mojang.brigadier.StringReader p_120875_)
    • equals

      public boolean equals(Object p_120877_)
      Overrides:
      equals in class Object
    • hashCode

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

      public boolean isRelative()