Class WizardSpellFunction.Serializer

java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Serializer<WizardSpellFunction>
com.binaris.wizardry.content.loot.WizardSpellFunction.Serializer
All Implemented Interfaces:
net.minecraft.world.level.storage.loot.Serializer<WizardSpellFunction>
Enclosing class:
WizardSpellFunction

public static class WizardSpellFunction.Serializer extends net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Serializer<WizardSpellFunction>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    deserialize(@NotNull com.google.gson.JsonObject object, @NotNull com.google.gson.JsonDeserializationContext context, net.minecraft.world.level.storage.loot.predicates.LootItemCondition @NotNull [] conditions)
     
    void
    serialize(@NotNull com.google.gson.JsonObject json, @NotNull WizardSpellFunction loot, @NotNull com.google.gson.JsonSerializationContext context)
     

    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 json, @NotNull @NotNull WizardSpellFunction loot, @NotNull @NotNull com.google.gson.JsonSerializationContext context)
      Specified by:
      serialize in interface net.minecraft.world.level.storage.loot.Serializer<WizardSpellFunction>
      Overrides:
      serialize in class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Serializer<WizardSpellFunction>
    • deserialize

      @NotNull public @NotNull WizardSpellFunction deserialize(@NotNull @NotNull com.google.gson.JsonObject object, @NotNull @NotNull com.google.gson.JsonDeserializationContext context, net.minecraft.world.level.storage.loot.predicates.LootItemCondition @NotNull [] conditions)
      Specified by:
      deserialize in class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Serializer<WizardSpellFunction>