Class LocationPart


  • public class LocationPart
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_EXPECTED_DOUBLE  
      static com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_EXPECTED_INT  
      private boolean relative  
      private double value  
    • Constructor Summary

      Constructors 
      Constructor Description
      LocationPart​(boolean p_i47963_1_, double p_i47963_2_)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object p_equals_1_)  
      double get​(double p_197306_1_)  
      int hashCode()  
      boolean isRelative()  
      static boolean isRelative​(com.mojang.brigadier.StringReader p_197309_0_)  
      static LocationPart parseDouble​(com.mojang.brigadier.StringReader p_197308_0_, boolean p_197308_1_)  
      static LocationPart parseInt​(com.mojang.brigadier.StringReader p_197307_0_)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • 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 Detail

      • LocationPart

        public LocationPart​(boolean p_i47963_1_,
                            double p_i47963_2_)
    • Method Detail

      • 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​(java.lang.Object p_equals_1_)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public boolean isRelative()