Class LootItemConditionalFunction.Serializer<T extends LootItemConditionalFunction>

java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Serializer<T>
All Implemented Interfaces:
Serializer<T>
Direct Known Subclasses:
ApplyBonusCount.Serializer, ApplyExplosionDecay.Serializer, CopyBlockState.Serializer, CopyNameFunction.Serializer, CopyNbtFunction.Serializer, EnchantRandomlyFunction.Serializer, EnchantWithLevelsFunction.Serializer, ExplorationMapFunction.Serializer, FillPlayerHead.Serializer, LimitCount.Serializer, LootingEnchantFunction.Serializer, SetAttributesFunction.Serializer, SetBannerPatternFunction.Serializer, SetContainerContents.Serializer, SetContainerLootTable.Serializer, SetEnchantmentsFunction.Serializer, SetInstrumentFunction.Serializer, SetItemCountFunction.Serializer, SetItemDamageFunction.Serializer, SetLoreFunction.Serializer, SetNameFunction.Serializer, SetNbtFunction.Serializer, SetPotionFunction.Serializer, SetStewEffectFunction.Serializer, SmeltItemFunction.Serializer
Enclosing class:
LootItemConditionalFunction

public abstract static class LootItemConditionalFunction.Serializer<T extends LootItemConditionalFunction> extends Object implements Serializer<T>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final T
    deserialize(com.google.gson.JsonObject p_80719_, com.google.gson.JsonDeserializationContext p_80720_)
     
    abstract T
    deserialize(com.google.gson.JsonObject p_80721_, com.google.gson.JsonDeserializationContext p_80722_, LootItemCondition[] p_80723_)
     
    void
    serialize(com.google.gson.JsonObject p_80711_, T p_80712_, com.google.gson.JsonSerializationContext p_80713_)
     

    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 p_80711_, T p_80712_, com.google.gson.JsonSerializationContext p_80713_)
      Specified by:
      serialize in interface Serializer<T extends LootItemConditionalFunction>
    • deserialize

      public final T deserialize(com.google.gson.JsonObject p_80719_, com.google.gson.JsonDeserializationContext p_80720_)
      Specified by:
      deserialize in interface Serializer<T extends LootItemConditionalFunction>
    • deserialize

      public abstract T deserialize(com.google.gson.JsonObject p_80721_, com.google.gson.JsonDeserializationContext p_80722_, LootItemCondition[] p_80723_)