Posted July 20, 20205 yr I'm porting my 1.15.2 mod to 1.16.1 . In 1.15.2 , ITextComponent#getFormattedText() is the way to achieve my goal, but in 1.16.1, since most of forge is still mapping, I did not find a similar method to achieve my goal. Any idea? Also, is ITextComponent#applyTextStyle() in 1.16.1 calls ITextComponent#func_240699_a_()?
July 20, 20205 yr Author Since I need to style my text with default-set style, like the tools' tooltip, it has green texts on it.
July 21, 20205 yr Author um, to be clear, I want to draw it with font renderer but it only accepts String, that's the first problem, and second, after got all tooltips on the tool player is holding, they're formatted but ITextComponent, therefore, I might need that to achieve what I want in a simple way. Note: How about copy 1.15.2's method code and try to modify to be compatible to 1.16.2's?
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.