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 java.lang.Object implements ApplyBonus.IFormula
-
-
Field Summary
Fields Modifier and Type Field Description private int
bonusMultiplier
static ResourceLocation
TYPE
-
Constructor Summary
Constructors Constructor Description UniformBonusCountFormula(int p_i50981_1_)
-
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_216207_0_, com.google.gson.JsonDeserializationContext p_216207_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
-
bonusMultiplier
private final int bonusMultiplier
-
-
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_216207_0_, com.google.gson.JsonDeserializationContext p_216207_1_)
-
getType
public ResourceLocation getType()
- Specified by:
getType
in interfaceApplyBonus.IFormula
-
-