Package net.minecraft.loot.function
Class LootingEnchantLootFunction.Serializer
java.lang.Object
net.minecraft.loot.function.ConditionalLootFunction.Serializer<LootingEnchantLootFunction>
net.minecraft.loot.function.LootingEnchantLootFunction.Serializer
- All Implemented Interfaces:
JsonSerializer<LootingEnchantLootFunction>
- Enclosing class:
- LootingEnchantLootFunction
public static class LootingEnchantLootFunction.Serializer extends ConditionalLootFunction.Serializer<LootingEnchantLootFunction>
-
Constructor Summary
Constructors Constructor Description Serializer()
-
Method Summary
Modifier and Type Method Description LootingEnchantLootFunction
fromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, LootCondition[] lootCondition)
void
toJson(JsonObject jsonObject, LootingEnchantLootFunction lootingEnchantLootFunction, JsonSerializationContext jsonSerializationContext)
Methods inherited from class net.minecraft.loot.function.ConditionalLootFunction.Serializer
fromJson
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
toJson
public void toJson(JsonObject jsonObject, LootingEnchantLootFunction lootingEnchantLootFunction, JsonSerializationContext jsonSerializationContext)- Specified by:
toJson
in interfaceJsonSerializer<LootingEnchantLootFunction>
- Overrides:
toJson
in classConditionalLootFunction.Serializer<LootingEnchantLootFunction>
-
fromJson
public LootingEnchantLootFunction fromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, LootCondition[] lootCondition)- Specified by:
fromJson
in classConditionalLootFunction.Serializer<LootingEnchantLootFunction>
-