Class AmethystReducerFunc.Serializer

java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Serializer<AmethystReducerFunc>
at.petrak.hexcasting.common.loot.AmethystReducerFunc.Serializer
All Implemented Interfaces:
net.minecraft.world.level.storage.loot.Serializer<AmethystReducerFunc>
Enclosing class:
AmethystReducerFunc

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

    Constructors
    Constructor
    Description
     
  • Method Summary

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

    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(com.google.gson.JsonObject json, AmethystReducerFunc value, com.google.gson.JsonSerializationContext ctx)
      Specified by:
      serialize in interface net.minecraft.world.level.storage.loot.Serializer<AmethystReducerFunc>
      Overrides:
      serialize in class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Serializer<AmethystReducerFunc>
    • deserialize

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