Package net.minecraft.resource.metadata
Interface ResourceMetadataSerializer<T>
- All Superinterfaces:
ResourceMetadataReader<T>
- Mappings:
Namespace Name official amu
intermediary net/minecraft/class_7677
named net/minecraft/resource/metadata/ResourceMetadataSerializer
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ResourceMetadataSerializer<T>
com.google.gson.JsonObject
Methods inherited from interface net.minecraft.resource.metadata.ResourceMetadataReader
fromJson, getKey
-
Method Details
-
toJson
- Mappings:
Namespace Name Mixin selector official a
Lamu;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
Lamu;a(Ljava/lang/String;Lcom/mojang/serialization/Codec;)Lamu;
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;
-