Class MinMaxBoundsWrapped

java.lang.Object
net.minecraft.advancements.criterion.MinMaxBoundsWrapped

public class MinMaxBoundsWrapped extends Object
  • Field Details

    • ANY

      public static final MinMaxBoundsWrapped ANY
    • ERROR_INTS_ONLY

      public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_INTS_ONLY
    • min

      private final Float min
    • max

      private final Float max
  • Constructor Details

    • MinMaxBoundsWrapped

      public MinMaxBoundsWrapped(@Nullable Float p_i49328_1_, @Nullable Float p_i49328_2_)
  • Method Details

    • getMin

      @Nullable public Float getMin()
    • getMax

      @Nullable public Float getMax()
    • fromReader

      public static MinMaxBoundsWrapped fromReader(com.mojang.brigadier.StringReader p_207921_0_, boolean p_207921_1_, Function<Float,Float> p_207921_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • readNumber

      @Nullable private static Float readNumber(com.mojang.brigadier.StringReader p_207924_0_, boolean p_207924_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • isAllowedNumber

      private static boolean isAllowedNumber(com.mojang.brigadier.StringReader p_207920_0_, boolean p_207920_1_)
    • optionallyFormat

      @Nullable private static Float optionallyFormat(@Nullable Float p_207922_0_, Function<Float,Float> p_207922_1_)