Package net.minecraft.loot.functions
Class ApplyBonus.UniformBonusCountFormula
java.lang.Object
net.minecraft.loot.functions.ApplyBonus.UniformBonusCountFormula
- All Implemented Interfaces:
ApplyBonus.IFormula
- Enclosing class:
- ApplyBonus
static final class ApplyBonus.UniformBonusCountFormula
extends Object
implements ApplyBonus.IFormula
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcalculateNewCount(Random p_216204_1_, int p_216204_2_, int p_216204_3_) static ApplyBonus.IFormuladeserialize(com.google.gson.JsonObject p_216207_0_, com.google.gson.JsonDeserializationContext p_216207_1_) getType()voidserializeParams(com.google.gson.JsonObject p_216202_1_, com.google.gson.JsonSerializationContext p_216202_2_)
-
Field Details
-
TYPE
-
bonusMultiplier
private final int bonusMultiplier
-
-
Constructor Details
-
UniformBonusCountFormula
public UniformBonusCountFormula(int p_i50981_1_)
-
-
Method Details
-
calculateNewCount
- Specified by:
calculateNewCountin interfaceApplyBonus.IFormula
-
serializeParams
public void serializeParams(com.google.gson.JsonObject p_216202_1_, com.google.gson.JsonSerializationContext p_216202_2_) - Specified by:
serializeParamsin interfaceApplyBonus.IFormula
-
deserialize
public static ApplyBonus.IFormula deserialize(com.google.gson.JsonObject p_216207_0_, com.google.gson.JsonDeserializationContext p_216207_1_) -
getType
- Specified by:
getTypein interfaceApplyBonus.IFormula
-