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.Formulapublic void toJson(JsonObject json, JsonSerializationContext context)
toJson in interface ApplyBonusLootFunction.Formulapublic static ApplyBonusLootFunction.Formula fromJson(JsonObject json, JsonDeserializationContext context)
public Identifier getId()
getId in interface ApplyBonusLootFunction.Formula