Class ApplyBonusCount.UniformBonusCount
java.lang.Object
net.minecraft.world.level.storage.loot.functions.ApplyBonusCount.UniformBonusCount
- All Implemented Interfaces:
ApplyBonusCount.Formula
- Enclosing class:
- ApplyBonusCount
static final class ApplyBonusCount.UniformBonusCount
extends Object
implements ApplyBonusCount.Formula
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
calculateNewCount
(Random p_80025_, int p_80026_, int p_80027_) static ApplyBonusCount.Formula
deserialize
(com.google.gson.JsonObject p_80019_, com.google.gson.JsonDeserializationContext p_80020_) getType()
void
serializeParams
(com.google.gson.JsonObject p_80022_, com.google.gson.JsonSerializationContext p_80023_)
-
Field Details
-
TYPE
-
bonusMultiplier
private final int bonusMultiplier
-
-
Constructor Details
-
UniformBonusCount
public UniformBonusCount(int p_80016_)
-
-
Method Details
-
calculateNewCount
- Specified by:
calculateNewCount
in interfaceApplyBonusCount.Formula
-
serializeParams
public void serializeParams(com.google.gson.JsonObject p_80022_, com.google.gson.JsonSerializationContext p_80023_) - Specified by:
serializeParams
in interfaceApplyBonusCount.Formula
-
deserialize
public static ApplyBonusCount.Formula deserialize(com.google.gson.JsonObject p_80019_, com.google.gson.JsonDeserializationContext p_80020_) -
getType
- Specified by:
getType
in interfaceApplyBonusCount.Formula
-