Package net.minecraft.network.chat
Class ComponentSerialization
java.lang.Object
net.minecraft.network.chat.ComponentSerialization
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
(package private) static class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static com.mojang.serialization.Codec<Component>
createCodec
(com.mojang.serialization.Codec<Component> p_304554_) private static MutableComponent
createFromList
(List<Component> p_304405_) static <T extends StringRepresentable,
E>
com.mojang.serialization.MapCodec<E>createLegacyComponentMatcher
(T[] p_304815_, Function<T, com.mojang.serialization.MapCodec<? extends E>> p_304852_, Function<E, T> p_304510_, String p_307551_)
-
Field Details
-
CODEC
-
FLAT_CODEC
-
-
Constructor Details
-
ComponentSerialization
public ComponentSerialization()
-
-
Method Details
-
createFromList
-
createLegacyComponentMatcher
public static <T extends StringRepresentable,E> com.mojang.serialization.MapCodec<E> createLegacyComponentMatcher(T[] p_304815_, Function<T, com.mojang.serialization.MapCodec<? extends E>> p_304852_, Function<E, T> p_304510_, String p_307551_) -
createCodec
-