Package net.minecraft.network.chat
Class Component.Serializer
java.lang.Object
net.minecraft.network.chat.Component.Serializer
- Enclosing interface:
Component
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) static MutableComponent
deserialize
(com.google.gson.JsonElement p_130720_, HolderLookup.Provider p_334184_) static MutableComponent
fromJson
(com.google.gson.JsonElement p_330936_, HolderLookup.Provider p_331821_) static MutableComponent
fromJson
(String p_332445_, HolderLookup.Provider p_334661_) static MutableComponent
fromJsonLenient
(String p_130715_, HolderLookup.Provider p_335522_) (package private) static com.google.gson.JsonElement
serialize
(Component p_130706_, HolderLookup.Provider p_332074_) static String
toJson
(Component p_130704_, HolderLookup.Provider p_334954_)
-
Field Details
-
GSON
private static final com.google.gson.Gson GSON
-
-
Constructor Details
-
Serializer
private Serializer()
-
-
Method Details
-
deserialize
static MutableComponent deserialize(com.google.gson.JsonElement p_130720_, HolderLookup.Provider p_334184_) -
serialize
-
toJson
-
fromJson
@Nullable public static MutableComponent fromJson(String p_332445_, HolderLookup.Provider p_334661_) -
fromJson
@Nullable public static MutableComponent fromJson(@Nullable com.google.gson.JsonElement p_330936_, HolderLookup.Provider p_331821_) -
fromJsonLenient
@Nullable public static MutableComponent fromJsonLenient(String p_130715_, HolderLookup.Provider p_335522_)
-