Class LocationPart

java.lang.Object
net.minecraft.command.arguments.LocationPart

public class LocationPart extends Object
  • Field Details

    • 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

    • LocationPart

      public LocationPart(boolean p_i47963_1_, double p_i47963_2_)
  • Method Details

    • get

      public double get(double p_197306_1_)
    • parseDouble

      public static LocationPart parseDouble(com.mojang.brigadier.StringReader p_197308_0_, boolean p_197308_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • parseInt

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

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

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

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

      public boolean isRelative()