You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fun String.literal(): MutableText=Text.literal(this)
17
23
@@ -25,8 +31,17 @@ fun Message.summary(): String {
25
31
26
32
fun GameProfile.getTextures() =Iterables.getFirst(this.properties.get("textures"), null)?.value
27
33
28
-
fun Component.toNative(wrapperLookup:RegistryWrapper.WrapperLookup): MutableText=Text.Serialization.fromJson(GsonComponentSerializer.gson().serialize(this), wrapperLookup)?:Text.empty()
34
+
fun Component.toNative(wrapperLookup:RegistryWrapper.WrapperLookup): MutableText {
35
+
val json =GSON.fromJson(GsonComponentSerializer.gson().serialize(this), JsonElement::class.java)
fun Text.toAdventure(wrapperLookup:RegistryWrapper.WrapperLookup) =GsonComponentSerializer.gson().deserialize(Text.Serialization.toJsonString(this, wrapperLookup))
40
+
fun Text.toAdventure(wrapperLookup:RegistryWrapper.WrapperLookup): Component {
0 commit comments