Class NumberEstimate

java.lang.Object
com.petrolpark.core.data.loot.numberprovider.NumberEstimate
Direct Known Subclasses:
NumberEstimate.Exact, NumberEstimate.Range, NumberEstimate.Unknown

public abstract sealed class NumberEstimate extends Object permits NumberEstimate.Exact, NumberEstimate.Range, NumberEstimate.Unknown
  • Field Details

  • Constructor Details

    • NumberEstimate

      protected NumberEstimate(boolean approximate)
  • Method Details

    • getMax

      public static float getMax(net.minecraft.world.level.storage.loot.LootContext context, net.minecraft.world.level.storage.loot.providers.number.NumberProvider provider)
    • getMax

      public static float getMax(net.minecraft.world.level.storage.loot.LootContext context, net.minecraft.world.level.storage.loot.providers.number.NumberProvider provider, int rolls)
    • get

      public static NumberEstimate get(net.minecraft.world.level.storage.loot.providers.number.NumberProvider numberProvider)
    • getBinomial

      public static final NumberEstimate getBinomial(net.minecraft.world.level.storage.loot.providers.number.BinomialDistributionGenerator binomial)
    • exactly

      public static final NumberEstimate exactly(float value)
    • approximately

      public static final NumberEstimate approximately(float value)
    • ranged

      public static final NumberEstimate ranged(NumberEstimate minEstimate, NumberEstimate maxEstimate)
    • ranged

      public static final NumberEstimate ranged(NumberEstimate minEstimate, NumberEstimate maxEstimate, boolean approximate)
    • ranged

      public static final NumberEstimate ranged(float min, float max, boolean approximate)
    • ranged

      public static final NumberEstimate ranged(float min, float max)
    • getIntComponent

      public net.minecraft.network.chat.Component getIntComponent()
    • getComponent

      public abstract net.minecraft.network.chat.Component getComponent(DecimalFormat df)
    • min

      public abstract float min()
    • max

      public abstract float max()
    • add

      public abstract NumberEstimate add(NumberEstimate estimate)
    • subtract

      public NumberEstimate subtract(NumberEstimate estimate)
    • add

      public abstract NumberEstimate add(float value)
    • multiply

      public abstract NumberEstimate multiply(NumberEstimate estimate)
    • divide

      public NumberEstimate divide(NumberEstimate estimate)
    • multiply

      public abstract NumberEstimate multiply(float value)
    • reciprocal

      public abstract NumberEstimate reciprocal()
    • negative

      public abstract NumberEstimate negative()
    • pow

      public abstract NumberEstimate pow(float exponent)
    • exp

      public abstract NumberEstimate exp()
    • or

      public abstract NumberEstimate or(NumberEstimate estimate)
    • unknown

      public boolean unknown()