Interface ResourceMetadataSerializer<T>

All Superinterfaces:
ResourceMetadataReader<T>
All Known Implementing Classes:
PackResourceMetadataReader

public interface ResourceMetadataSerializer<T> extends ResourceMetadataReader<T>
Mappings:
Namespace Name
official ajy
intermediary net/minecraft/class_7677
named net/minecraft/resource/metadata/ResourceMetadataSerializer
  • Method Details

    • toJson

      JsonObject toJson(T metadata)
      Mappings:
      Namespace Name Mixin selector
      official a Lajy;a(Ljava/lang/Object;)Lcom/google/gson/JsonObject;
      intermediary method_45251 Lnet/minecraft/class_7677;method_45251(Ljava/lang/Object;)Lcom/google/gson/JsonObject;
      named toJson Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;toJson(Ljava/lang/Object;)Lcom/google/gson/JsonObject;
    • fromCodec

      static <T> ResourceMetadataSerializer<T> fromCodec(String key, com.mojang.serialization.Codec<T> codec)
      Mappings:
      Namespace Name Mixin selector
      official a Lajy;a(Ljava/lang/String;Lcom/mojang/serialization/Codec;)Lajy;
      intermediary method_45252 Lnet/minecraft/class_7677;method_45252(Ljava/lang/String;Lcom/mojang/serialization/Codec;)Lnet/minecraft/class_7677;
      named fromCodec Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;fromCodec(Ljava/lang/String;Lcom/mojang/serialization/Codec;)Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;