update 1.19.2 bot, chat support

This commit is contained in:
Tnze
2022-11-26 15:58:31 +08:00
parent 6a3589ad61
commit 7814e7b1ab
20 changed files with 532 additions and 136 deletions

View File

@ -1,5 +1,11 @@
package packetid
//go:generate stringer -type ClientboundPacketID
//go:generate stringer -type ServerboundPacketID
type ClientboundPacketID int32
type ServerboundPacketID int32
// Login Clientbound
const (
LoginDisconnect = iota
@ -30,7 +36,7 @@ const (
// Game Clientbound
const (
ClientboundAddEntity = iota
ClientboundAddEntity ClientboundPacketID = iota
ClientboundAddExperienceOrb
ClientboundAddPlayer
ClientboundAnimate
@ -142,7 +148,7 @@ const (
// Game Serverbound
const (
ServerboundAcceptTeleportation = iota
ServerboundAcceptTeleportation ServerboundPacketID = iota
ServerboundBlockEntityTagQuery
ServerboundChangeDifficulty
ServerboundChatAck