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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    deserialize(com.google.gson.JsonObject object, @NotNull com.google.gson.JsonDeserializationContext deserializationContext, net.minecraft.world.level.storage.loot.predicates.LootItemCondition @NotNull [] conditions)
     
    void
    serialize(@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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      serialize in interface net.minecraft.world.level.storage.loot.Serializer<RandomSpellFunction>
      Overrides:
      serialize in class net.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:
      deserialize in class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Serializer<RandomSpellFunction>