/* * SPDX-FileCopyrightText: 2024 Linnea Gräf * * SPDX-License-Identifier: GPL-3.0-or-later */ package moe.nea.firmament.apis.ingame import net.minecraft.network.packet.CustomPayload /** * A class to smuggle two parsed instances of the same custom payload packet. */ class JoinedCustomPayload( val original: CustomPayload, val smuggled: FirmamentCustomPayload ) : CustomPayload { companion object { val joinedId = CustomPayload.id("firmament:joined") } override fun getId(): CustomPayload.Id { return joinedId } }