public class TextCodecs_v1_20_3
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static interface |
TextCodecs_v1_20_3.TextComponentType |
| Modifier and Type | Field | Description |
|---|---|---|
static net.lenni0451.mcstructs.converter.mapcodec.MapCodec<KeybindComponent> |
KEYBIND_COMPONENT |
|
static net.lenni0451.mcstructs.converter.mapcodec.MapCodec<NbtComponent> |
NBT_COMPONENT |
|
static net.lenni0451.mcstructs.converter.mapcodec.MapCodec<ScoreComponent> |
SCORE_COMPONENT |
|
static net.lenni0451.mcstructs.converter.mapcodec.MapCodec<SelectorComponent> |
SELECTOR_COMPONENT |
|
static net.lenni0451.mcstructs.converter.mapcodec.MapCodec<StringComponent> |
STRING_COMPONENT |
|
static net.lenni0451.mcstructs.converter.codec.Codec<TextComponent> |
TEXT |
|
static net.lenni0451.mcstructs.converter.mapcodec.MapCodec<TranslationComponent> |
TRANSLATION_COMPONENT |
| Constructor | Description |
|---|---|
TextCodecs_v1_20_3() |
| Modifier and Type | Method | Description |
|---|---|---|
static <T extends TextCodecs_v1_20_3.TextComponentType> |
createCodec(net.lenni0451.mcstructs.converter.codec.Codec<TextComponent> codec,
net.lenni0451.mcstructs.converter.mapcodec.MapCodec<Style> styleCodec,
T[] componentTypes,
java.util.function.Function<TextComponent,T> componentToType) |
|
static <T extends net.lenni0451.mcstructs.converter.types.NamedType,E> |
createLegacyComponentMatcher(T[] types,
java.util.function.Function<T,net.lenni0451.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 net.lenni0451.mcstructs.converter.codec.Codec<TextComponent> TEXT
public static final net.lenni0451.mcstructs.converter.mapcodec.MapCodec<StringComponent> STRING_COMPONENT
public static final net.lenni0451.mcstructs.converter.mapcodec.MapCodec<TranslationComponent> TRANSLATION_COMPONENT
public static final net.lenni0451.mcstructs.converter.mapcodec.MapCodec<KeybindComponent> KEYBIND_COMPONENT
public static final net.lenni0451.mcstructs.converter.mapcodec.MapCodec<ScoreComponent> SCORE_COMPONENT
public static final net.lenni0451.mcstructs.converter.mapcodec.MapCodec<SelectorComponent> SELECTOR_COMPONENT
public static final net.lenni0451.mcstructs.converter.mapcodec.MapCodec<NbtComponent> NBT_COMPONENT
public static <T extends TextCodecs_v1_20_3.TextComponentType> net.lenni0451.mcstructs.converter.codec.Codec<TextComponent> createCodec(net.lenni0451.mcstructs.converter.codec.Codec<TextComponent> codec, net.lenni0451.mcstructs.converter.mapcodec.MapCodec<Style> styleCodec, T[] componentTypes, java.util.function.Function<TextComponent,T> componentToType)
public static <T extends net.lenni0451.mcstructs.converter.types.NamedType,E> net.lenni0451.mcstructs.converter.mapcodec.MapCodec<E> createLegacyComponentMatcher(T[] types,
java.util.function.Function<T,net.lenni0451.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)