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:
@@ -10,7 +10,7 @@ type LoginCookieResponse struct {
|
||||
Payload []byte `mc:"ByteArray"`
|
||||
}
|
||||
|
||||
func (LoginCookieResponse) PacketID() packetid.ServerboundPacketID {
|
||||
func (*LoginCookieResponse) PacketID() packetid.ServerboundPacketID {
|
||||
return packetid.ServerboundLoginCookieResponse
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ type LoginCustomQueryAnswer struct {
|
||||
Data []byte `mc:"ByteArray"`
|
||||
}
|
||||
|
||||
func (LoginCustomQueryAnswer) PacketID() packetid.ServerboundPacketID {
|
||||
func (*LoginCustomQueryAnswer) PacketID() packetid.ServerboundPacketID {
|
||||
return packetid.ServerboundLoginCustomQueryAnswer
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ type LoginHello struct {
|
||||
UUID uuid.UUID `mc:"UUID"`
|
||||
}
|
||||
|
||||
func (LoginHello) PacketID() packetid.ServerboundPacketID {
|
||||
func (*LoginHello) PacketID() packetid.ServerboundPacketID {
|
||||
return packetid.ServerboundLoginHello
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ type LoginKey struct {
|
||||
VerifyToken []byte `mc:"ByteArray"`
|
||||
}
|
||||
|
||||
func (LoginKey) PacketID() packetid.ServerboundPacketID {
|
||||
func (*LoginKey) PacketID() packetid.ServerboundPacketID {
|
||||
return packetid.ServerboundLoginKey
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import "github.com/Tnze/go-mc/data/packetid"
|
||||
type LoginLoginAcknowledged struct {
|
||||
}
|
||||
|
||||
func (LoginLoginAcknowledged) PacketID() packetid.ServerboundPacketID {
|
||||
func (*LoginLoginAcknowledged) PacketID() packetid.ServerboundPacketID {
|
||||
return packetid.ServerboundLoginLoginAcknowledged
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user