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

@ -9,7 +9,7 @@ type ConfigClientInformation struct {
server.ClientInformation
}
func (ConfigClientInformation) PacketID() packetid.ServerboundPacketID {
func (*ConfigClientInformation) PacketID() packetid.ServerboundPacketID {
return packetid.ServerboundConfigClientInformation
}

View File

@ -9,7 +9,7 @@ type ConfigCookieResponse struct {
server.CookieResponse
}
func (ConfigCookieResponse) PacketID() packetid.ServerboundPacketID {
func (*ConfigCookieResponse) PacketID() packetid.ServerboundPacketID {
return packetid.ServerboundConfigCookieResponse
}

View File

@ -11,7 +11,7 @@ type ConfigCustomClickAction struct {
Data nbt.RawMessage `mc:"NBT"`
}
func (ConfigCustomClickAction) PacketID() packetid.ServerboundPacketID {
func (*ConfigCustomClickAction) PacketID() packetid.ServerboundPacketID {
return packetid.ServerboundConfigCustomClickAction
}

View File

@ -9,7 +9,7 @@ type ConfigCustomPayload struct {
server.CustomPayload
}
func (ConfigCustomPayload) PacketID() packetid.ServerboundPacketID {
func (*ConfigCustomPayload) PacketID() packetid.ServerboundPacketID {
return packetid.ServerboundConfigCustomPayload
}

View File

@ -6,7 +6,7 @@ import "github.com/Tnze/go-mc/data/packetid"
type ConfigFinishConfiguration struct {
}
func (ConfigFinishConfiguration) PacketID() packetid.ServerboundPacketID {
func (*ConfigFinishConfiguration) PacketID() packetid.ServerboundPacketID {
return packetid.ServerboundConfigFinishConfiguration
}

View File

@ -7,7 +7,7 @@ type ConfigKeepAlive struct {
ID int64
}
func (ConfigKeepAlive) PacketID() packetid.ServerboundPacketID {
func (*ConfigKeepAlive) PacketID() packetid.ServerboundPacketID {
return packetid.ServerboundConfigKeepAlive
}

View File

@ -7,7 +7,7 @@ type ConfigPong struct {
ID int32
}
func (ConfigPong) PacketID() packetid.ServerboundPacketID {
func (*ConfigPong) PacketID() packetid.ServerboundPacketID {
return packetid.ServerboundConfigPong
}

View File

@ -9,7 +9,7 @@ type ConfigResourcePack struct {
server.ResourcePack
}
func (ConfigResourcePack) PacketID() packetid.ServerboundPacketID {
func (*ConfigResourcePack) PacketID() packetid.ServerboundPacketID {
return packetid.ServerboundConfigResourcePack
}

View File

@ -10,7 +10,7 @@ type ConfigSelectKnownPacks struct {
Packs []client.KnownPack
}
func (ConfigSelectKnownPacks) PacketID() packetid.ServerboundPacketID {
func (*ConfigSelectKnownPacks) PacketID() packetid.ServerboundPacketID {
return packetid.ServerboundConfigSelectKnownPacks
}