Interface ResourceMetadataSerializer<T>

All Superinterfaces:
ResourceMetadataReader<T>

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

    • toJson

      JsonObject toJson(T metadata)
      Mappings:
      Namespace Name Mixin selector
      named toJson Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;toJson(Ljava/lang/Object;)Lcom/google/gson/JsonObject;
      intermediary method_45251 Lnet/minecraft/class_7677;method_45251(Ljava/lang/Object;)Lcom/google/gson/JsonObject;
      official a Latp;a(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
      named fromCodec Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;fromCodec(Ljava/lang/String;Lcom/mojang/serialization/Codec;)Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;
      intermediary method_45252 Lnet/minecraft/class_7677;method_45252(Ljava/lang/String;Lcom/mojang/serialization/Codec;)Lnet/minecraft/class_7677;
      official a Latp;a(Ljava/lang/String;Lcom/mojang/serialization/Codec;)Latp;