onBeforeSpawnPacket

open override fun onBeforeSpawnPacket(player: ServerPlayer, packetConsumer: Consumer<Packet<*>>)(source)

Sends a ClientboundPlayerInfoUpdatePacket before the entity spawn packet so the client downloads the Lorekeeper's skin texture from Mojang's servers. Without this, the client would render a Steve/Alex default skin.