Files
legacy-version/legacyver/legacypacket/container_registry_cleanup.go
AkmalFairuz 9677eef999 Add 1.21.20
2025-01-01 12:34:03 +07:00

25 lines
757 B
Go

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)
}