API パッケージ概要
gophertunnel は、Minecraft Bedrock Edition のプロトコル処理に必要なコンポーネントを以下のモジュール群に整理しています。
パッケージ一覧
| パッケージ | インポートパス | 主な用途 |
|---|---|---|
| minecraft | github.com/sandertv/gophertunnel/minecraft | 接続の中核(Conn, Dialer, ListenConfig, Listener, GameData) |
| packet | github.com/sandertv/gophertunnel/minecraft/protocol/packet | 全Bedrockパケットの構造体定義、Packet インターフェース、Header |
| protocol | github.com/sandertv/gophertunnel/minecraft/protocol | 基本型・VarInt・VarLong、IO (Reader/Writer) |
| auth | github.com/sandertv/gophertunnel/minecraft/auth | Microsoft / Xbox Live トークン取得、OAuth2 リフレッシュ |
| realms | github.com/sandertv/gophertunnel/minecraft/realms | Minecraft Realms API クライアント、アドレス解決 |
| resource | github.com/sandertv/gophertunnel/minecraft/resource | リソースパック・ビヘイビアーパックのパース、暗号化解除 |
| nbt | github.com/sandertv/gophertunnel/minecraft/nbt | Minecraft NBT (Named Binary Tag) のシリアライズ/デシリアライズ |
| query | github.com/sandertv/gophertunnel/query | UT3 Query プロトコルによるサーバー情報問い合わせ |
主要な型リファレンス
- minecraft.Conn: パケット送受信の基本コネクション
- Dialer & ListenConfig: 接続開始および待受設定
- protocol & packet: パケット定義とIO操作