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