public static class EnchantRandomlyLootFunction.Serializer extends ConditionalLootFunction.Serializer<EnchantRandomlyLootFunction>
| Constructor and Description |
|---|
Serializer() |
| Modifier and Type | Method and Description |
|---|---|
EnchantRandomlyLootFunction |
fromJson(JsonObject jsonObject,
JsonDeserializationContext jsonDeserializationContext,
LootCondition[] lootCondition) |
void |
toJson(JsonObject jsonObject,
EnchantRandomlyLootFunction enchantRandomlyLootFunction,
JsonSerializationContext jsonSerializationContext) |
fromJsonpublic void toJson(JsonObject jsonObject, EnchantRandomlyLootFunction enchantRandomlyLootFunction, JsonSerializationContext jsonSerializationContext)
toJson in interface JsonSerializer<EnchantRandomlyLootFunction>toJson in class ConditionalLootFunction.Serializer<EnchantRandomlyLootFunction>public EnchantRandomlyLootFunction fromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, LootCondition[] lootCondition)
fromJson in class ConditionalLootFunction.Serializer<EnchantRandomlyLootFunction>