KotlinNBT
Named Binary Tag (NBT) library for Kotlin Multiplataform
Install / Use
/learn @DevSrSouza/KotlinNBTREADME
KotlinNBT
Named Binary Tag (NBT) library for Kotlin Multiplatform
Dependencies
- Kotlin Standard Library (1.3.20)
- Kotlinx.io (0.1.7)
Examples
Read NBT from file
import java.io.File
import kotlinx.io.core.ByteReadPacket
import br.com.devsrsouza.kotlinnbt.api.io.readTag
val player = "069a79f4-44e9-4726-a5be-fca90e38aaf5" // notch uuid
val playerData = File("$player.dat").readBytes()
val packet = ByteReadPacket(playerData)
val tag = packet.readTag()
println(tag)
Compound DSL
val nbt = nbtCompound {
string["key"] = "value"
list<IntTag> {
int = 5
int = 6
int = 7
}
string["name"] = "im a name"
}
println(nbt)
Related Skills
node-connect
352.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
