Open SettingDust opened 1 year ago
Mh, I much prefer the current DSL, I am not the biggest fan of these implicit APIs hiding the actual function calls - the only place where I would actually do this might be a simpler version of the text builder.
How about the functions for constructing tags just like ByteTag()
?
What would be advantage over the currently provided extension functions which do the same?
What would be advantage over the currently provided extension functions which do the same?
toNbt
need the data type exactly same. Such as 5.toByte().toNbt()
. Maybe we can provide two methods at same time
Wouldn't be possible to have
nbtCompound {
"id" to "minecraft:grass"
"Count" to 5.toByte()
"tag" {
"foo" to "bar"
}
}
using context receivers?
Why can't? I use the extension functions implemented
I don't looking deep into context receiver. But I think it's possible
Current:
New:
Provide a compound tag builder scope. Return a compound tag
Or(have to set
JvmName
for functions):