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:
@ -7,7 +7,7 @@ type LoginCookieRequest struct {
|
||||
Key string `mc:"Identifier"`
|
||||
}
|
||||
|
||||
func (LoginCookieRequest) PacketID() packetid.ClientboundPacketID {
|
||||
func (*LoginCookieRequest) PacketID() packetid.ClientboundPacketID {
|
||||
return packetid.ClientboundLoginCookieRequest
|
||||
}
|
||||
|
||||
|
@ -9,7 +9,7 @@ type LoginCustomQuery struct {
|
||||
Data []byte `mc:"ByteArray"`
|
||||
}
|
||||
|
||||
func (LoginCustomQuery) PacketID() packetid.ClientboundPacketID {
|
||||
func (*LoginCustomQuery) PacketID() packetid.ClientboundPacketID {
|
||||
return packetid.ClientboundLoginCustomQuery
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@ type LoginHello struct {
|
||||
ShouldAuthenticate bool
|
||||
}
|
||||
|
||||
func (LoginHello) PacketID() packetid.ClientboundPacketID {
|
||||
func (*LoginHello) PacketID() packetid.ClientboundPacketID {
|
||||
return packetid.ClientboundLoginHello
|
||||
}
|
||||
|
||||
|
@ -7,7 +7,7 @@ type LoginLoginCompression struct {
|
||||
Threshold int32 `mc:"VarInt"`
|
||||
}
|
||||
|
||||
func (LoginLoginCompression) PacketID() packetid.ClientboundPacketID {
|
||||
func (*LoginLoginCompression) PacketID() packetid.ClientboundPacketID {
|
||||
return packetid.ClientboundLoginLoginCompression
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@ type LoginLoginDisconnect struct {
|
||||
Reason chat.JsonMessage
|
||||
}
|
||||
|
||||
func (LoginLoginDisconnect) PacketID() packetid.ClientboundPacketID {
|
||||
func (*LoginLoginDisconnect) PacketID() packetid.ClientboundPacketID {
|
||||
return packetid.ClientboundLoginLoginDisconnect
|
||||
}
|
||||
|
||||
|
@ -13,7 +13,7 @@ type LoginLoginFinished struct {
|
||||
Properties []user.Property
|
||||
}
|
||||
|
||||
func (LoginLoginFinished) PacketID() packetid.ClientboundPacketID {
|
||||
func (*LoginLoginFinished) PacketID() packetid.ClientboundPacketID {
|
||||
return packetid.ClientboundLoginLoginFinished
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user