The reversed operation of parseText()
sakurawald opened this issue · 3 comments
Now i can use parser.parseText()
to convert quick-text string
into Text
.
I am wondering if there is a way existing to convert Text
into quick-text string
.
This function is not used ofter. For persist the Text instance, there are gson serializer/deserializer provided by mojang.
Myself I would recommend just storing the input instead, as generated one might not match user input at all (for example, gradients couldn't really be reversed, unless a lot of math/checking was used, but even then it can slightly change when I tweak the code).
You can use included WrappedText utility class for that
Myself I would recommend just storing the input instead, as generated one might not match user input at all (for example, gradients couldn't really be reversed, unless a lot of math/checking was used, but even then it can slightly change when I tweak the code).
You can use included WrappedText utility class for that
Okay, thank you <3.