static final class ApplyBonusLootFunction.OreDrops extends Object implements ApplyBonusLootFunction.Formula
Modifier and Type | Field and Description |
---|---|
static Identifier |
ID |
Modifier | Constructor and Description |
---|---|
private |
OreDrops() |
Modifier and Type | Method and Description |
---|---|
static ApplyBonusLootFunction.Formula |
fromJson(JsonObject json,
JsonDeserializationContext context) |
Identifier |
getId() |
int |
getValue(Random random,
int initialCount,
int enchantmentLevel) |
void |
toJson(JsonObject json,
JsonSerializationContext context) |
public static final Identifier ID
public int getValue(Random random, int initialCount, int enchantmentLevel)
getValue
in interface ApplyBonusLootFunction.Formula
public void toJson(JsonObject json, JsonSerializationContext context)
toJson
in interface ApplyBonusLootFunction.Formula
public static ApplyBonusLootFunction.Formula fromJson(JsonObject json, JsonDeserializationContext context)
public Identifier getId()
getId
in interface ApplyBonusLootFunction.Formula