refactor package
This commit is contained in:
20
pkg/protocol/packet/game/client/command_suggestions.go
Normal file
20
pkg/protocol/packet/game/client/command_suggestions.go
Normal file
@ -0,0 +1,20 @@
|
||||
package client
|
||||
|
||||
import (
|
||||
"github.com/Tnze/go-mc/chat"
|
||||
pk "github.com/Tnze/go-mc/net/packet"
|
||||
)
|
||||
|
||||
//codec:gen
|
||||
type CommandSuggestionsMatch struct {
|
||||
Match string
|
||||
Tooltip pk.Option[chat.Message, *chat.Message]
|
||||
}
|
||||
|
||||
//codec:gen
|
||||
type CommandSuggestions struct {
|
||||
ID int32 `mc:"VarInt"`
|
||||
Start int32 `mc:"VarInt"`
|
||||
Length int32 `mc:"VarInt"`
|
||||
Matches []CommandSuggestionsMatch
|
||||
}
|
Reference in New Issue
Block a user