Package net.minecraft.network.chat
Class Component.SerializerAdapter
java.lang.Object
net.minecraft.network.chat.Component.SerializerAdapter
- All Implemented Interfaces:
JsonDeserializer<MutableComponent>
,JsonSerializer<Component>
- Enclosing interface:
Component
public static class Component.SerializerAdapter
extends Object
implements JsonDeserializer<MutableComponent>, JsonSerializer<Component>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(JsonElement pJson, Type pTypeOfT, JsonDeserializationContext pContext) serialize
(Component pSrc, Type pTypeOfSrc, JsonSerializationContext pContext)
-
Field Details
-
registries
-
-
Constructor Details
-
SerializerAdapter
-
-
Method Details
-
deserialize
public MutableComponent deserialize(JsonElement pJson, Type pTypeOfT, JsonDeserializationContext pContext) throws JsonParseException - Specified by:
deserialize
in interfaceJsonDeserializer<MutableComponent>
- Throws:
JsonParseException
-
serialize
- Specified by:
serialize
in interfaceJsonSerializer<Component>
-