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 java.lang.Object implements ApplyBonus.IFormula
-
-
Field Summary
Fields Modifier and Type Field Description private int
extraRounds
private float
probability
static ResourceLocation
TYPE
-
Constructor Summary
Constructors Constructor Description BinomialWithBonusCountFormula(int p_i50983_1_, float p_i50983_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
calculateNewCount(java.util.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_)
ResourceLocation
getType()
void
serializeParams(com.google.gson.JsonObject p_216202_1_, com.google.gson.JsonSerializationContext p_216202_2_)
-
-
-
Field Detail
-
TYPE
public static final ResourceLocation TYPE
-
extraRounds
private final int extraRounds
-
probability
private final float probability
-
-
Method Detail
-
calculateNewCount
public int calculateNewCount(java.util.Random p_216204_1_, int p_216204_2_, int p_216204_3_)
- 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
public ResourceLocation getType()
- Specified by:
getType
in interfaceApplyBonus.IFormula
-
-