> For the complete documentation index, see [llms.txt](https://worldboxopenmods.gitbook.io/mod-tutorial-en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://worldboxopenmods.gitbook.io/mod-tutorial-en/other-techs/listenhandle.md).

# Event Handle

## 介绍

NML提供了监听-处理器的patch替代解决方案, 旨在避免多个模组Patch进同一个函数导致的模组冲突, 以及普遍的Prefix和Postfix带来的性能开销.

示例代码实现了当Plot开始的时候弹出WorldLog Message作为提示

[相关代码示例第一部分](https://github.com/WorldBoxOpenMods/ModExample/blob/master/content/ExampleEventHandlers.cs)

[相关代码示例第二部分](https://github.com/WorldBoxOpenMods/ModExample/tree/master/content/handlers)

## 概览


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://worldboxopenmods.gitbook.io/mod-tutorial-en/other-techs/listenhandle.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
