Class ComponentSerialization

java.lang.Object
net.minecraft.network.chat.ComponentSerialization

public class ComponentSerialization extends Object
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<Component> CODEC
    • FLAT_CODEC

      public static final com.mojang.serialization.Codec<Component> FLAT_CODEC
  • Constructor Details

    • ComponentSerialization

      public ComponentSerialization()
  • Method Details

    • createFromList

      private static MutableComponent createFromList(List<Component> p_312708_)
    • createLegacyComponentMatcher

      public static <T extends StringRepresentable, E> com.mojang.serialization.MapCodec<E> createLegacyComponentMatcher(T[] p_312620_, Function<T,com.mojang.serialization.MapCodec<? extends E>> p_312447_, Function<E,T> p_309774_, String p_311665_)
    • createCodec

      private static com.mojang.serialization.Codec<Component> createCodec(com.mojang.serialization.Codec<Component> p_310353_)