Class IntRange.Serializer

java.lang.Object
net.minecraft.world.level.storage.loot.IntRange.Serializer
All Implemented Interfaces:
com.google.gson.JsonDeserializer<IntRange>, com.google.gson.JsonSerializer<IntRange>
Enclosing class:
IntRange

public static class IntRange.Serializer extends Object implements com.google.gson.JsonDeserializer<IntRange>, com.google.gson.JsonSerializer<IntRange>
  • Constructor Details

    • Serializer

      public Serializer()
  • Method Details

    • deserialize

      public IntRange deserialize(com.google.gson.JsonElement p_165064_, Type p_165065_, com.google.gson.JsonDeserializationContext p_165066_)
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<IntRange>
    • serialize

      public com.google.gson.JsonElement serialize(IntRange p_165068_, Type p_165069_, com.google.gson.JsonSerializationContext p_165070_)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<IntRange>