blob: 4b6a6bcdea92a1e5fe8b4df2b7174c83bf706ddc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
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<JoinedCustomPayload>("firmament:joined")
}
override fun getId(): CustomPayload.Id<out JoinedCustomPayload> {
return joinedId
}
}
|