Add 1.21.2 & 1.21.0 support
This commit is contained in:
25
legacyver/legacypacket/set_actor_link.go
Normal file
25
legacyver/legacypacket/set_actor_link.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package legacypacket
|
||||
|
||||
import (
|
||||
"github.com/akmalfairuz/legacy-version/legacyver/proto"
|
||||
"github.com/sandertv/gophertunnel/minecraft/protocol"
|
||||
"github.com/sandertv/gophertunnel/minecraft/protocol/packet"
|
||||
)
|
||||
|
||||
// SetActorLink is sent by the server to initiate an entity link client-side, meaning one entity will start
|
||||
// riding another.
|
||||
type SetActorLink struct {
|
||||
// EntityLink is the link to be set client-side. It links two entities together, so that one entity rides
|
||||
// another. Note that players that see those entities later will not see the link, unless it is also sent
|
||||
// in the AddActor and AddPlayer packets.
|
||||
EntityLink proto.EntityLink
|
||||
}
|
||||
|
||||
// ID ...
|
||||
func (*SetActorLink) ID() uint32 {
|
||||
return packet.IDSetActorLink
|
||||
}
|
||||
|
||||
func (pk *SetActorLink) Marshal(io protocol.IO) {
|
||||
protocol.Single(io, &pk.EntityLink)
|
||||
}
|
||||
Reference in New Issue
Block a user