We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7877d0a commit 2807ff6Copy full SHA for 2807ff6
1 file changed
README.md
@@ -45,6 +45,12 @@ The `embedComponent` can be parsed back from json with [Kyori Adventure](https:/
45
Component c = GsonComponentSerializer.gson().deserialize(embedComponent);
46
```
47
48
+Or with Minecraft's text components:
49
+```java
50
+// MC 1.21.1 mojmap
51
+MutableComponent component = Component.Serializer.fromJson(response.embedComponent(), Minecraft.getInstance().player.registryAccess());
52
+```
53
+
54
### Example
55
56
```bash
0 commit comments