Class LootFunction.Serializer<T extends LootFunction>

java.lang.Object
net.minecraft.loot.LootFunction.Serializer<T>
All Implemented Interfaces:
ILootSerializer<T>
Direct Known Subclasses:
ApplyBonus.Serializer, CopyBlockState.Serializer, CopyName.Serializer, CopyNbt.Serializer, EnchantRandomly.Serializer, EnchantWithLevels.Serializer, ExplorationMap.Serializer, ExplosionDecay.Serializer, FillPlayerHead.Serializer, LimitCount.Serializer, LootingEnchantBonus.Serializer, SetAttributes.Serializer, SetContents.Serializer, SetCount.Serializer, SetDamage.Serializer, SetLootTable.Serializer, SetLore.Serializer, SetName.Serializer, SetNBT.Serializer, SetStewEffect.Serializer, Smelt.Serializer
Enclosing class:
LootFunction

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final T
    deserialize(com.google.gson.JsonObject p_230423_1_, com.google.gson.JsonDeserializationContext p_230423_2_)
     
    abstract T
    deserialize(com.google.gson.JsonObject p_186530_1_, com.google.gson.JsonDeserializationContext p_186530_2_, ILootCondition[] p_186530_3_)
     
    void
    serialize(com.google.gson.JsonObject p_230424_1_, T p_230424_2_, com.google.gson.JsonSerializationContext p_230424_3_)
     

    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_230424_1_, T p_230424_2_, com.google.gson.JsonSerializationContext p_230424_3_)
      Specified by:
      serialize in interface ILootSerializer<T extends LootFunction>
    • deserialize

      public final T deserialize(com.google.gson.JsonObject p_230423_1_, com.google.gson.JsonDeserializationContext p_230423_2_)
      Specified by:
      deserialize in interface ILootSerializer<T extends LootFunction>
    • deserialize

      public abstract T deserialize(com.google.gson.JsonObject p_186530_1_, com.google.gson.JsonDeserializationContext p_186530_2_, ILootCondition[] p_186530_3_)