public class TypeSerializers
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected ItemComponentRegistry |
registry |
protected net.lenni0451.mcstructs.text.serializer.TextComponentCodec |
textComponentCodec |
| Constructor and Description |
|---|
TypeSerializers(ItemComponentRegistry registry,
net.lenni0451.mcstructs.text.serializer.TextComponentCodec textComponentCodec) |
| Modifier and Type | Method and Description |
|---|---|
net.lenni0451.mcstructs.text.serializer.TextComponentCodec |
getTextComponentCodec() |
protected <T> net.lenni0451.mcstructs.converter.codec.Codec<T> |
init(java.lang.String key,
java.util.function.Supplier<net.lenni0451.mcstructs.converter.codec.Codec<T>> codecSupplier) |
protected final ItemComponentRegistry registry
protected final net.lenni0451.mcstructs.text.serializer.TextComponentCodec textComponentCodec
public TypeSerializers(ItemComponentRegistry registry, net.lenni0451.mcstructs.text.serializer.TextComponentCodec textComponentCodec)
public net.lenni0451.mcstructs.text.serializer.TextComponentCodec getTextComponentCodec()
protected <T> net.lenni0451.mcstructs.converter.codec.Codec<T> init(java.lang.String key,
java.util.function.Supplier<net.lenni0451.mcstructs.converter.codec.Codec<T>> codecSupplier)