refactor package

This commit is contained in:
2025-08-22 05:14:59 +08:00
parent bec0a56a3d
commit 65690e51ab
371 changed files with 835 additions and 627 deletions

View File

@ -0,0 +1,33 @@
package server
import (
"github.com/Tnze/go-mc/chat"
"github.com/Tnze/go-mc/data/packetid"
pk "github.com/Tnze/go-mc/net/packet"
)
//codec:gen
type TestInstanceBlockAction struct {
Position pk.Position
Action int32 `mc:"VarInt"`
IsTest bool
//opt:optional:IsTest
Test int32 `mc:"VarInt"`
SizeX, SizeY, SizeZ int32 `mc:"VarInt"`
Rotation int32 `mc:"VarInt"`
IgnoredEntities bool
Status int32 `mc:"VarInt"`
HasErrorMessage bool
//opt:optional:HasErrorMessage
ErrorMessage chat.Message
}
func (TestInstanceBlockAction) PacketID() packetid.ServerboundPacketID {
return packetid.ServerboundTestInstanceBlockAction
}
func init() {
registerPacket(packetid.ServerboundTestInstanceBlockAction, func() ServerboundPacket {
return &TestInstanceBlockAction{}
})
}