Package net.minecraft.loot.functions
Class ApplyBonus.BinomialWithBonusCountFormula
java.lang.Object
net.minecraft.loot.functions.ApplyBonus.BinomialWithBonusCountFormula
- All Implemented Interfaces:
ApplyBonus.IFormula
- Enclosing class:
- ApplyBonus
static final class ApplyBonus.BinomialWithBonusCountFormula
extends Object
implements ApplyBonus.IFormula
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final float
static final ResourceLocation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
calculateNewCount
(Random p_216204_1_, int p_216204_2_, int p_216204_3_) static ApplyBonus.IFormula
deserialize
(com.google.gson.JsonObject p_216210_0_, com.google.gson.JsonDeserializationContext p_216210_1_) getType()
void
serializeParams
(com.google.gson.JsonObject p_216202_1_, com.google.gson.JsonSerializationContext p_216202_2_)
-
Field Details
-
TYPE
-
extraRounds
private final int extraRounds -
probability
private final float probability
-
-
Constructor Details
-
BinomialWithBonusCountFormula
public BinomialWithBonusCountFormula(int p_i50983_1_, float p_i50983_2_)
-
-
Method Details
-
calculateNewCount
- Specified by:
calculateNewCount
in interfaceApplyBonus.IFormula
-
serializeParams
public void serializeParams(com.google.gson.JsonObject p_216202_1_, com.google.gson.JsonSerializationContext p_216202_2_) - Specified by:
serializeParams
in interfaceApplyBonus.IFormula
-
deserialize
public static ApplyBonus.IFormula deserialize(com.google.gson.JsonObject p_216210_0_, com.google.gson.JsonDeserializationContext p_216210_1_) -
getType
- Specified by:
getType
in interfaceApplyBonus.IFormula
-