Class MinMaxBounds.FloatBound

  • Enclosing class:
    MinMaxBounds<T extends java.lang.Number>

    public static class MinMaxBounds.FloatBound
    extends MinMaxBounds<java.lang.Float>
    • Field Detail

      • minSq

        private final java.lang.Double minSq
      • maxSq

        private final java.lang.Double maxSq
    • Constructor Detail

      • FloatBound

        private FloatBound​(@Nullable
                           java.lang.Float p_i49717_1_,
                           @Nullable
                           java.lang.Float p_i49717_2_)
    • Method Detail

      • create

        private static MinMaxBounds.FloatBound create​(com.mojang.brigadier.StringReader p_211352_0_,
                                                      @Nullable
                                                      java.lang.Float p_211352_1_,
                                                      @Nullable
                                                      java.lang.Float p_211352_2_)
                                               throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • squareOpt

        @Nullable
        private static java.lang.Double squareOpt​(@Nullable
                                                  java.lang.Float p_211350_0_)
      • matches

        public boolean matches​(float p_211354_1_)
      • matchesSqr

        public boolean matchesSqr​(double p_211351_1_)
      • fromReader

        public static MinMaxBounds.FloatBound fromReader​(com.mojang.brigadier.StringReader p_211357_0_)
                                                  throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • fromReader

        public static MinMaxBounds.FloatBound fromReader​(com.mojang.brigadier.StringReader p_211353_0_,
                                                         java.util.function.Function<java.lang.Float,​java.lang.Float> p_211353_1_)
                                                  throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException