Class LootFunctionCopyEnergyBatteryData.Serializer

java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Serializer<LootFunctionCopyEnergyBatteryData>
org.cyclops.integrateddynamics.loot.functions.LootFunctionCopyEnergyBatteryData.Serializer
All Implemented Interfaces:
net.minecraft.world.level.storage.loot.Serializer<LootFunctionCopyEnergyBatteryData>
Enclosing class:
LootFunctionCopyEnergyBatteryData

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    deserialize(com.google.gson.JsonObject jsonObject, com.google.gson.JsonDeserializationContext jsonDeserializationContext, net.minecraft.world.level.storage.loot.predicates.LootItemCondition[] conditionsIn)
     
    void
    serialize(com.google.gson.JsonObject jsonObject, LootFunctionCopyEnergyBatteryData lootFunctionCopyId, com.google.gson.JsonSerializationContext jsonSerializationContext)
     

    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 jsonObject, LootFunctionCopyEnergyBatteryData lootFunctionCopyId, com.google.gson.JsonSerializationContext jsonSerializationContext)
      Specified by:
      serialize in interface net.minecraft.world.level.storage.loot.Serializer<LootFunctionCopyEnergyBatteryData>
      Overrides:
      serialize in class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Serializer<LootFunctionCopyEnergyBatteryData>
    • deserialize

      public LootFunctionCopyEnergyBatteryData deserialize(com.google.gson.JsonObject jsonObject, com.google.gson.JsonDeserializationContext jsonDeserializationContext, net.minecraft.world.level.storage.loot.predicates.LootItemCondition[] conditionsIn)
      Specified by:
      deserialize in class net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction.Serializer<LootFunctionCopyEnergyBatteryData>