Update docs & README

This commit is contained in:
2026-09-10 02:27:05 +08:00
parent 62a59bd184
commit 7c22cdd158
3 files changed
+8 -2

No files matched your search

+4
View File
@@ -12,6 +12,10 @@ A lightweight minecraft client-side protocol library for Kotlin Native and JVM
| | Linux ARM64 | **Not Tested** | | | Linux ARM64 | **Not Tested** |
| **macOS** | macOS ARM64 (Silicon) | **Not Tested** | | **macOS** | macOS ARM64 (Silicon) | **Not Tested** |
# Get started
[LibMC Document](docs/README.md)
# Minecraft Protocol Library Status # Minecraft Protocol Library Status
## Implementation details ## Implementation details
+2 -2
View File
@@ -92,11 +92,11 @@ fun main() {
socketEngine = KtorNetworkEngine() socketEngine = KtorNetworkEngine()
} }
) )
cli.session.onEvent<SessionEvent.ConnectedEvent> { cli.onEvent<SessionEvent.ConnectedEvent> {
println(status()) println(status())
disconnect() disconnect()
} }
cli.session.onEvent<SessionEvent.DisconnectedEvent> { cli.onEvent<SessionEvent.DisconnectedEvent> {
println(it.reason.toJsonString()) println(it.reason.toJsonString())
} }
cli.connect() cli.connect()
+2
View File
@@ -18,6 +18,8 @@ module relies on the following dependencies:
# Protocol # Protocol
[Protocol](Protocol.md)
> `libmc-protocol` is current under development. It only supports the latest Minecraft version > `libmc-protocol` is current under development. It only supports the latest Minecraft version
> (Current supported Minecraft version: `26.2`, Protocol Version Number: `776`) > (Current supported Minecraft version: `26.2`, Protocol Version Number: `776`)