public static class LootingEnchantLootFunction.Factory extends ConditionalLootFunction.Factory<LootingEnchantLootFunction>
Modifier | Constructor and Description |
---|---|
protected |
Factory() |
Modifier and Type | Method and Description |
---|---|
LootingEnchantLootFunction |
fromJson(JsonObject jsonObject,
JsonDeserializationContext jsonDeserializationContext,
LootCondition[] lootCondition) |
void |
toJson(JsonObject jsonObject,
LootingEnchantLootFunction lootingEnchantLootFunction,
JsonSerializationContext jsonSerializationContext) |
fromJson
getFunctionClass, getId
public void toJson(JsonObject jsonObject, LootingEnchantLootFunction lootingEnchantLootFunction, JsonSerializationContext jsonSerializationContext)
toJson
in class ConditionalLootFunction.Factory<LootingEnchantLootFunction>
public LootingEnchantLootFunction fromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, LootCondition[] lootCondition)
fromJson
in class ConditionalLootFunction.Factory<LootingEnchantLootFunction>