update protocol packet definitions: replace value receivers with pointer receivers in PacketID methods, expand FixedBitSet size from 8 to 256 bits, and remove outdated documentation files

This commit is contained in:
2025-08-23 17:27:23 +08:00
parent eb01f5ccc7
commit 8b3d6c8bd5
122 changed files with 586 additions and 681 deletions

View File

@ -7,7 +7,7 @@ type LoginCookieRequest struct {
Key string `mc:"Identifier"`
}
func (LoginCookieRequest) PacketID() packetid.ClientboundPacketID {
func (*LoginCookieRequest) PacketID() packetid.ClientboundPacketID {
return packetid.ClientboundLoginCookieRequest
}

View File

@ -9,7 +9,7 @@ type LoginCustomQuery struct {
Data []byte `mc:"ByteArray"`
}
func (LoginCustomQuery) PacketID() packetid.ClientboundPacketID {
func (*LoginCustomQuery) PacketID() packetid.ClientboundPacketID {
return packetid.ClientboundLoginCustomQuery
}

View File

@ -10,7 +10,7 @@ type LoginHello struct {
ShouldAuthenticate bool
}
func (LoginHello) PacketID() packetid.ClientboundPacketID {
func (*LoginHello) PacketID() packetid.ClientboundPacketID {
return packetid.ClientboundLoginHello
}

View File

@ -7,7 +7,7 @@ type LoginLoginCompression struct {
Threshold int32 `mc:"VarInt"`
}
func (LoginLoginCompression) PacketID() packetid.ClientboundPacketID {
func (*LoginLoginCompression) PacketID() packetid.ClientboundPacketID {
return packetid.ClientboundLoginLoginCompression
}

View File

@ -10,7 +10,7 @@ type LoginLoginDisconnect struct {
Reason chat.JsonMessage
}
func (LoginLoginDisconnect) PacketID() packetid.ClientboundPacketID {
func (*LoginLoginDisconnect) PacketID() packetid.ClientboundPacketID {
return packetid.ClientboundLoginLoginDisconnect
}

View File

@ -13,7 +13,7 @@ type LoginLoginFinished struct {
Properties []user.Property
}
func (LoginLoginFinished) PacketID() packetid.ClientboundPacketID {
func (*LoginLoginFinished) PacketID() packetid.ClientboundPacketID {
return packetid.ClientboundLoginLoginFinished
}