EffectSyncPacket

data class EffectSyncPacket(val effects: List<EffectSyncPacket.EffectData>) : CustomPacketPayload

Packet for synchronizing Katton mob effects from server to client. Sent during configuration phase before Fabric's registry sync check.

Constructors

Link copied to clipboard
constructor(effects: List<EffectSyncPacket.EffectData>)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class EffectData(val id: Identifier, val category: MobEffectCategory, val color: Int)

Data for a single effect to be synchronized.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun type(): CustomPacketPayload.Type<out CustomPacketPayload>
Link copied to clipboard
fun write(buf: FriendlyByteBuf)