Class ApplyBonusCount.BinomialWithBonusCount
java.lang.Object
net.minecraft.world.level.storage.loot.functions.ApplyBonusCount.BinomialWithBonusCount
- All Implemented Interfaces:
ApplyBonusCount.Formula
- Enclosing class:
- ApplyBonusCount
static final class ApplyBonusCount.BinomialWithBonusCount
extends Object
implements ApplyBonusCount.Formula
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final float
static final ResourceLocation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
calculateNewCount
(Random p_79962_, int p_79963_, int p_79964_) static ApplyBonusCount.Formula
deserialize
(com.google.gson.JsonObject p_79956_, com.google.gson.JsonDeserializationContext p_79957_) getType()
void
serializeParams
(com.google.gson.JsonObject p_79959_, com.google.gson.JsonSerializationContext p_79960_)
-
Field Details
-
TYPE
-
extraRounds
private final int extraRounds -
probability
private final float probability
-
-
Constructor Details
-
BinomialWithBonusCount
public BinomialWithBonusCount(int p_79952_, float p_79953_)
-
-
Method Details
-
calculateNewCount
- Specified by:
calculateNewCount
in interfaceApplyBonusCount.Formula
-
serializeParams
public void serializeParams(com.google.gson.JsonObject p_79959_, com.google.gson.JsonSerializationContext p_79960_) - Specified by:
serializeParams
in interfaceApplyBonusCount.Formula
-
deserialize
public static ApplyBonusCount.Formula deserialize(com.google.gson.JsonObject p_79956_, com.google.gson.JsonDeserializationContext p_79957_) -
getType
- Specified by:
getType
in interfaceApplyBonusCount.Formula
-