Class LootEntityNumberProviderType.SimpleSerializer<NP extends EntityNumberProvider>

java.lang.Object
com.petrolpark.data.loot.numberprovider.entity.LootEntityNumberProviderType.SimpleSerializer<NP>
All Implemented Interfaces:
net.minecraft.world.level.storage.loot.Serializer<NP>
Enclosing class:
LootEntityNumberProviderType

public static final class LootEntityNumberProviderType.SimpleSerializer<NP extends EntityNumberProvider> extends Object implements net.minecraft.world.level.storage.loot.Serializer<NP>
  • Field Details

  • Constructor Details

    • SimpleSerializer

      public SimpleSerializer(Supplier<NP> factory)
  • Method Details

    • serialize

      public void serialize(com.google.gson.JsonObject json, NP value, com.google.gson.JsonSerializationContext serializationContext)
      Specified by:
      serialize in interface net.minecraft.world.level.storage.loot.Serializer<NP extends EntityNumberProvider>
    • deserialize

      public NP deserialize(com.google.gson.JsonObject json, com.google.gson.JsonDeserializationContext serializationContext)
      Specified by:
      deserialize in interface net.minecraft.world.level.storage.loot.Serializer<NP extends EntityNumberProvider>