public class NbtTextSerializer_v1_20_3 extends java.lang.Object implements ITextComponentSerializer<net.lenni0451.mcstructs.nbt.INbtTag>, CodecUtils_v1_20_3
| Constructor and Description |
|---|
NbtTextSerializer_v1_20_3(java.util.function.Function<NbtTextSerializer_v1_20_3,IStyleSerializer<net.lenni0451.mcstructs.nbt.INbtTag>> styleSerializer) |
| Modifier and Type | Method and Description |
|---|---|
protected net.lenni0451.mcstructs.nbt.INbtTag |
convert(java.lang.Object object) |
ATextComponent |
deserialize(net.lenni0451.mcstructs.nbt.INbtTag object) |
protected net.lenni0451.mcstructs.nbt.tags.ListTag<?> |
getArrayOrList(net.lenni0451.mcstructs.nbt.tags.CompoundTag tag,
java.lang.String key) |
protected net.lenni0451.mcstructs.nbt.NbtType |
getCommonType(java.util.List<net.lenni0451.mcstructs.nbt.INbtTag> tags) |
IStyleSerializer<net.lenni0451.mcstructs.nbt.INbtTag> |
getStyleSerializer() |
protected net.lenni0451.mcstructs.nbt.INbtTag |
optimizeAndConvert(java.util.List<net.lenni0451.mcstructs.nbt.INbtTag> tags) |
net.lenni0451.mcstructs.nbt.INbtTag |
serialize(ATextComponent object) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontainsArray, containsObject, containsString, isNumber, isObject, isString, optionalBoolean, optionalBoolean, optionalCompound, optionalInt, optionalInt, optionalObject, optionalString, optionalString, requiredBoolean, requiredBoolean, requiredCompound, requiredInt, requiredInt, requiredObject, requiredString, requiredString, unwrapMarkerspublic NbtTextSerializer_v1_20_3(java.util.function.Function<NbtTextSerializer_v1_20_3,IStyleSerializer<net.lenni0451.mcstructs.nbt.INbtTag>> styleSerializer)
public IStyleSerializer<net.lenni0451.mcstructs.nbt.INbtTag> getStyleSerializer()
getStyleSerializer in interface ITextComponentSerializer<net.lenni0451.mcstructs.nbt.INbtTag>public net.lenni0451.mcstructs.nbt.INbtTag serialize(ATextComponent object)
serialize in interface ITypedSerializer<net.lenni0451.mcstructs.nbt.INbtTag,ATextComponent>protected net.lenni0451.mcstructs.nbt.INbtTag convert(java.lang.Object object)
protected net.lenni0451.mcstructs.nbt.INbtTag optimizeAndConvert(java.util.List<net.lenni0451.mcstructs.nbt.INbtTag> tags)
protected net.lenni0451.mcstructs.nbt.NbtType getCommonType(java.util.List<net.lenni0451.mcstructs.nbt.INbtTag> tags)
public ATextComponent deserialize(net.lenni0451.mcstructs.nbt.INbtTag object)
deserialize in interface ITypedSerializer<net.lenni0451.mcstructs.nbt.INbtTag,ATextComponent>protected net.lenni0451.mcstructs.nbt.tags.ListTag<?> getArrayOrList(net.lenni0451.mcstructs.nbt.tags.CompoundTag tag,
java.lang.String key)