Add 1.21.20
This commit is contained in:
24
legacyver/legacypacket/container_registry_cleanup.go
Normal file
24
legacyver/legacypacket/container_registry_cleanup.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package legacypacket
|
||||
|
||||
import (
|
||||
"github.com/akmalfairuz/legacy-version/legacyver/proto"
|
||||
"github.com/sandertv/gophertunnel/minecraft/protocol"
|
||||
"github.com/sandertv/gophertunnel/minecraft/protocol/packet"
|
||||
)
|
||||
|
||||
// ContainerRegistryCleanup is sent by the server to trigger a client-side cleanup of the dynamic container
|
||||
// registry.
|
||||
type ContainerRegistryCleanup struct {
|
||||
// RemovedContainers is a list of protocol.FullContainerName's that should be removed from the client-side
|
||||
// container registry.
|
||||
RemovedContainers []proto.FullContainerName
|
||||
}
|
||||
|
||||
// ID ...
|
||||
func (*ContainerRegistryCleanup) ID() uint32 {
|
||||
return packet.IDContainerRegistryCleanup
|
||||
}
|
||||
|
||||
func (pk *ContainerRegistryCleanup) Marshal(io protocol.IO) {
|
||||
protocol.Slice(io, &pk.RemovedContainers)
|
||||
}
|
||||
Reference in New Issue
Block a user