public class TextCodecs_v1_20_3
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
TextCodecs_v1_20_3.TextComponentType |
| Modifier and Type | Field and Description |
|---|---|
static com.viaversion.viaversion.libs.mcstructs.converter.mapcodec.MapCodec<KeybindComponent> |
KEYBIND_COMPONENT |
static com.viaversion.viaversion.libs.mcstructs.converter.mapcodec.MapCodec<NbtComponent> |
NBT_COMPONENT |
static com.viaversion.viaversion.libs.mcstructs.converter.mapcodec.MapCodec<ScoreComponent> |
SCORE_COMPONENT |
static com.viaversion.viaversion.libs.mcstructs.converter.mapcodec.MapCodec<SelectorComponent> |
SELECTOR_COMPONENT |
static com.viaversion.viaversion.libs.mcstructs.converter.mapcodec.MapCodec<StringComponent> |
STRING_COMPONENT |
static com.viaversion.viaversion.libs.mcstructs.converter.codec.Codec<TextComponent> |
TEXT |
static com.viaversion.viaversion.libs.mcstructs.converter.mapcodec.MapCodec<TranslationComponent> |
TRANSLATION_COMPONENT |
| Constructor and Description |
|---|
TextCodecs_v1_20_3() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends TextCodecs_v1_20_3.TextComponentType> |
createCodec(com.viaversion.viaversion.libs.mcstructs.converter.codec.Codec<TextComponent> codec,
com.viaversion.viaversion.libs.mcstructs.converter.mapcodec.MapCodec<Style> styleCodec,
T[] componentTypes,
java.util.function.Function<TextComponent,T> componentToType) |
static <T extends com.viaversion.viaversion.libs.mcstructs.converter.types.NamedType,E> |
createLegacyComponentMatcher(T[] types,
java.util.function.Function<T,com.viaversion.viaversion.libs.mcstructs.converter.mapcodec.MapCodec<? extends E>> codecSupplier,
java.util.function.Function<E,T> typeSupplier,
java.lang.String name) |
static java.lang.String |
tryCollapse(TextComponent component) |
public static final com.viaversion.viaversion.libs.mcstructs.converter.codec.Codec<TextComponent> TEXT
public static final com.viaversion.viaversion.libs.mcstructs.converter.mapcodec.MapCodec<StringComponent> STRING_COMPONENT
public static final com.viaversion.viaversion.libs.mcstructs.converter.mapcodec.MapCodec<TranslationComponent> TRANSLATION_COMPONENT
public static final com.viaversion.viaversion.libs.mcstructs.converter.mapcodec.MapCodec<KeybindComponent> KEYBIND_COMPONENT
public static final com.viaversion.viaversion.libs.mcstructs.converter.mapcodec.MapCodec<ScoreComponent> SCORE_COMPONENT
public static final com.viaversion.viaversion.libs.mcstructs.converter.mapcodec.MapCodec<SelectorComponent> SELECTOR_COMPONENT
public static final com.viaversion.viaversion.libs.mcstructs.converter.mapcodec.MapCodec<NbtComponent> NBT_COMPONENT
public static <T extends TextCodecs_v1_20_3.TextComponentType> com.viaversion.viaversion.libs.mcstructs.converter.codec.Codec<TextComponent> createCodec(com.viaversion.viaversion.libs.mcstructs.converter.codec.Codec<TextComponent> codec, com.viaversion.viaversion.libs.mcstructs.converter.mapcodec.MapCodec<Style> styleCodec, T[] componentTypes, java.util.function.Function<TextComponent,T> componentToType)
public static <T extends com.viaversion.viaversion.libs.mcstructs.converter.types.NamedType,E> com.viaversion.viaversion.libs.mcstructs.converter.mapcodec.MapCodec<E> createLegacyComponentMatcher(T[] types,
java.util.function.Function<T,com.viaversion.viaversion.libs.mcstructs.converter.mapcodec.MapCodec<? extends E>> codecSupplier,
java.util.function.Function<E,T> typeSupplier,
java.lang.String name)
@Nullable public static java.lang.String tryCollapse(TextComponent component)