Comments (2)
Hm that is interesting. I've set up a test case locally and am not able to reproduce this issue. Any tips on how you're deserializing legacy code? When I run this test case, I get:
TextComponentImpl{content="Your link code is ", children=[
TextComponentImpl{content="4000", children=[], style=Style{color=null, obfuscated=null, bold=true, strikethrough=null, underlined=null, italic=null, clickEvent=null, hoverEvent=null, insertion=null, font=null}},
TextComponentImpl{content=". PM the bot on Discord (", children=[
TextComponentImpl{content="3XP3R1M3N2L B0T", children=[], style=Style{color=null, obfuscated=null, bold=true, strikethrough=null, underlined=null, italic=null, clickEvent=null, hoverEvent=null, insertion=null, font=null}}
], style=Style{color=null, obfuscated=null, bold=null, strikethrough=null, underlined=null, italic=null, clickEvent=null, hoverEvent=null, insertion=null, font=null}},
TextComponentImpl{content=") containing just this ", children=[
TextComponentImpl{content="code", children=[], style=Style{color=null, obfuscated=null, bold=true, strikethrough=null, underlined=null, italic=null, clickEvent=null, hoverEvent=null, insertion=null, font=null}}
], style=Style{color=null, obfuscated=null, bold=null, strikethrough=null, underlined=null, italic=null, clickEvent=null, hoverEvent=null, insertion=null, font=null}},
TextComponentImpl{content=" as the ", children=[], style=Style{color=null, obfuscated=null, bold=null, strikethrough=null, underlined=null, italic=null, clickEvent=null, hoverEvent=null, insertion=null, font=null}},
TextComponentImpl{content="message", children=[], style=Style{color=aqua, obfuscated=null, bold=null, strikethrough=null, underlined=null, italic=null, clickEvent=null, hoverEvent=null, insertion=null, font=null}},
TextComponentImpl{content=" to link your accounts.", children=[], style=Style{color=null, obfuscated=null, bold=null, strikethrough=null, underlined=null, italic=null, clickEvent=null, hoverEvent=null, insertion=null, font=null}}
], style=Style{color=null, obfuscated=null, bold=null, strikethrough=null, underlined=null, italic=null, clickEvent=null, hoverEvent=null, insertion=null, font=null}}
Does that test case look right to you?
It also looks like the snippet you've listed as being from adventure 4.0.0-SNAPSHOT is not actually from adventure -- notice that the Style
toString output doesn't include a font
field, while the one my test case has produced does, and the lack of quotes in your examples.
from adventure.
It also looks like the snippet you've listed as being from adventure 4.0.0-SNAPSHOT is not actually from adventure -- notice that the Style toString output doesn't include a font field, while the one my test case has produced does, and the lack of quotes in your examples.
Ah, yeah indeed wasn't on adventure, and appears that it's working properly on adventure.
Sorry about the troubles.
from adventure.
Related Issues (20)
- Support new item hover format in 24w09+
- Particle Interfaces?
- Phase issues with <gradient> and more than 2 colors HOT 4
- BinaryTagIO.Reader & BinaryTagIO.Writer other tag support HOT 1
- Make `BinaryTagType.binaryTagType(int)` public HOT 1
- Emptying BossBar flags always calls bossBarFlagsChanged, even if nothing was changed
- Filtering tag provider
- Generic character mapping MiniMessage tag (for small caps)
- Default value for unresolved tags
- API for "caching" MiniMessage strings (or other serializer specific data) for ease of sending
- `CompoundBinaryTag#getBoolean` with default is incorrect
- `ListBinaryTag` is weakly immutable HOT 3
- NPE while sending a resource pack with no prompt HOT 1
- Adventure weighs hue too heavily when comparing colors HOT 3
- MiniMessage strips "redundant" tags which does not allow me to set prefixes as I can with legacy color codes HOT 1
- show_item client safety HOT 1
- NBT: NumberBinaryTag should have access to Number HOT 2
- Best practices in regex matching and editing the entire component content HOT 1
- Failed to parse the hoverableText for an enchanted item.
- Minimessage::escapeTags does not work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adventure.