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:
@ -9,7 +9,7 @@ type ConfigClientInformation struct {
|
||||
server.ClientInformation
|
||||
}
|
||||
|
||||
func (ConfigClientInformation) PacketID() packetid.ServerboundPacketID {
|
||||
func (*ConfigClientInformation) PacketID() packetid.ServerboundPacketID {
|
||||
return packetid.ServerboundConfigClientInformation
|
||||
}
|
||||
|
||||
|
@ -9,7 +9,7 @@ type ConfigCookieResponse struct {
|
||||
server.CookieResponse
|
||||
}
|
||||
|
||||
func (ConfigCookieResponse) PacketID() packetid.ServerboundPacketID {
|
||||
func (*ConfigCookieResponse) PacketID() packetid.ServerboundPacketID {
|
||||
return packetid.ServerboundConfigCookieResponse
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
@ -9,7 +9,7 @@ type ConfigCustomPayload struct {
|
||||
server.CustomPayload
|
||||
}
|
||||
|
||||
func (ConfigCustomPayload) PacketID() packetid.ServerboundPacketID {
|
||||
func (*ConfigCustomPayload) PacketID() packetid.ServerboundPacketID {
|
||||
return packetid.ServerboundConfigCustomPayload
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
@ -7,7 +7,7 @@ type ConfigKeepAlive struct {
|
||||
ID int64
|
||||
}
|
||||
|
||||
func (ConfigKeepAlive) PacketID() packetid.ServerboundPacketID {
|
||||
func (*ConfigKeepAlive) PacketID() packetid.ServerboundPacketID {
|
||||
return packetid.ServerboundConfigKeepAlive
|
||||
}
|
||||
|
||||
|
@ -7,7 +7,7 @@ type ConfigPong struct {
|
||||
ID int32
|
||||
}
|
||||
|
||||
func (ConfigPong) PacketID() packetid.ServerboundPacketID {
|
||||
func (*ConfigPong) PacketID() packetid.ServerboundPacketID {
|
||||
return packetid.ServerboundConfigPong
|
||||
}
|
||||
|
||||
|
@ -9,7 +9,7 @@ type ConfigResourcePack struct {
|
||||
server.ResourcePack
|
||||
}
|
||||
|
||||
func (ConfigResourcePack) PacketID() packetid.ServerboundPacketID {
|
||||
func (*ConfigResourcePack) PacketID() packetid.ServerboundPacketID {
|
||||
return packetid.ServerboundConfigResourcePack
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@ type ConfigSelectKnownPacks struct {
|
||||
Packs []client.KnownPack
|
||||
}
|
||||
|
||||
func (ConfigSelectKnownPacks) PacketID() packetid.ServerboundPacketID {
|
||||
func (*ConfigSelectKnownPacks) PacketID() packetid.ServerboundPacketID {
|
||||
return packetid.ServerboundConfigSelectKnownPacks
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user