Class RandomSpellFunction.Serializer
java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Serializer<RandomSpellFunction>
com.binaris.wizardry.content.loot.RandomSpellFunction.Serializer
- All Implemented Interfaces:
net.minecraft.world.level.storage.loot.Serializer<RandomSpellFunction>
- Enclosing class:
- RandomSpellFunction
public static class RandomSpellFunction.Serializer
extends net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Serializer<RandomSpellFunction>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull RandomSpellFunctiondeserialize(com.google.gson.JsonObject object, @NotNull com.google.gson.JsonDeserializationContext deserializationContext, net.minecraft.world.level.storage.loot.predicates.LootItemCondition @NotNull [] conditions) voidserialize(@NotNull com.google.gson.JsonObject object, @NotNull RandomSpellFunction function, @NotNull com.google.gson.JsonSerializationContext serializationContext) Methods inherited from class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Serializer
deserialize
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
serialize
public void serialize(@NotNull @NotNull com.google.gson.JsonObject object, @NotNull @NotNull RandomSpellFunction function, @NotNull @NotNull com.google.gson.JsonSerializationContext serializationContext) - Specified by:
serializein interfacenet.minecraft.world.level.storage.loot.Serializer<RandomSpellFunction>- Overrides:
serializein classnet.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Serializer<RandomSpellFunction>
-
deserialize
@NotNull public @NotNull RandomSpellFunction deserialize(com.google.gson.JsonObject object, @NotNull @NotNull com.google.gson.JsonDeserializationContext deserializationContext, net.minecraft.world.level.storage.loot.predicates.LootItemCondition @NotNull [] conditions) - Specified by:
deserializein classnet.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Serializer<RandomSpellFunction>
-