Class NumberEstimate.Exact
java.lang.Object
com.petrolpark.core.data.loot.numberprovider.NumberEstimate
com.petrolpark.core.data.loot.numberprovider.NumberEstimate.Exact
- Enclosing class:
NumberEstimate
-
Nested Class Summary
Nested classes/interfaces inherited from class com.petrolpark.core.data.loot.numberprovider.NumberEstimate
NumberEstimate.Exact, NumberEstimate.Range, NumberEstimate.Unknown -
Field Summary
FieldsFields inherited from class com.petrolpark.core.data.loot.numberprovider.NumberEstimate
approximate, E, ONE, UNKNOWN, ZERO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(float value) add(NumberEstimate estimate) exp()net.minecraft.network.chat.Componentfloatmax()floatmin()multiply(float value) multiply(NumberEstimate estimate) negative()or(NumberEstimate estimate) pow(float exponent) Methods inherited from class com.petrolpark.core.data.loot.numberprovider.NumberEstimate
approximately, divide, exactly, get, getBinomial, getIntComponent, getMax, getMax, ranged, ranged, ranged, ranged, subtract, unknown
-
Field Details
-
value
public final float value
-
-
Constructor Details
-
Exact
public Exact(float value, boolean approximate)
-
-
Method Details
-
getComponent
- Specified by:
getComponentin classNumberEstimate
-
min
public float min()- Specified by:
minin classNumberEstimate
-
max
public float max()- Specified by:
maxin classNumberEstimate
-
add
- Specified by:
addin classNumberEstimate
-
add
- Specified by:
addin classNumberEstimate
-
multiply
- Specified by:
multiplyin classNumberEstimate
-
multiply
- Specified by:
multiplyin classNumberEstimate
-
reciprocal
- Specified by:
reciprocalin classNumberEstimate
-
negative
- Specified by:
negativein classNumberEstimate
-
pow
- Specified by:
powin classNumberEstimate
-
exp
- Specified by:
expin classNumberEstimate
-
or
- Specified by:
orin classNumberEstimate
-