Class MinMaxBounds.IntBound

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

    public static class MinMaxBounds.IntBound
    extends MinMaxBounds<java.lang.Integer>
    • Field Detail

      • minSq

        private final java.lang.Long minSq
      • maxSq

        private final java.lang.Long maxSq
    • Constructor Detail

      • IntBound

        private IntBound​(@Nullable
                         java.lang.Integer p_i49716_1_,
                         @Nullable
                         java.lang.Integer p_i49716_2_)
    • Method Detail

      • create

        private static MinMaxBounds.IntBound create​(com.mojang.brigadier.StringReader p_211338_0_,
                                                    @Nullable
                                                    java.lang.Integer p_211338_1_,
                                                    @Nullable
                                                    java.lang.Integer p_211338_2_)
                                             throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException
      • squareOpt

        @Nullable
        private static java.lang.Long squareOpt​(@Nullable
                                                java.lang.Integer p_211343_0_)
      • matches

        public boolean matches​(int p_211339_1_)
      • fromJson

        public static MinMaxBounds.IntBound fromJson​(@Nullable
                                                     com.google.gson.JsonElement p_211344_0_)
      • fromReader

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

        public static MinMaxBounds.IntBound fromReader​(com.mojang.brigadier.StringReader p_211341_0_,
                                                       java.util.function.Function<java.lang.Integer,​java.lang.Integer> p_211341_1_)
                                                throws com.mojang.brigadier.exceptions.CommandSyntaxException
        Throws:
        com.mojang.brigadier.exceptions.CommandSyntaxException