Class MinMaxBounds.FloatBound

java.lang.Object
net.minecraft.advancements.criterion.MinMaxBounds<Float>
net.minecraft.advancements.criterion.MinMaxBounds.FloatBound
Enclosing class:
MinMaxBounds<T extends Number>

public static class MinMaxBounds.FloatBound extends MinMaxBounds<Float>
  • Field Details

  • Constructor Details

    • FloatBound

      private FloatBound(@Nullable Float p_i49717_1_, @Nullable Float p_i49717_2_)
  • Method Details

    • create

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

      @Nullable private static Double squareOpt(@Nullable Float p_211350_0_)
    • atLeast

      public static MinMaxBounds.FloatBound atLeast(float p_211355_0_)
    • matches

      public boolean matches(float p_211354_1_)
    • matchesSqr

      public boolean matchesSqr(double p_211351_1_)
    • fromJson

      public static MinMaxBounds.FloatBound fromJson(@Nullable com.google.gson.JsonElement p_211356_0_)
    • 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_, Function<Float,Float> p_211353_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException