# 开发文档

## 前提

你需要掌握 Java、Kotlin 其中一门编程语言\
你必须拥有开发 Bukkit 插件的能力

有什么不懂的可以加 **901796907** 交流群问

## 事件

| 事件名                              | 说明      |
| -------------------------------- | ------- |
| AttrAttributeTriggerEvent.Before | 属性触发前   |
| AttrAttributeTriggerEvent.After  | 属性触发后   |
| AttrUpdateAttributeEvent.Before  | 实体属性刷新前 |
| AttrUpdateAttributeEvent.After   | 实体属性刷新后 |
| AttrAttributeReadEvent           | 属性读取事件  |
| AttrEntityAttackEvent            | 实体攻击事件  |
| AttrShieldBlockEvent             | 盾牌格挡事件  |
| AttrShootBowEvent                | 弓射击事件   |

## 组件

| 接口名                                                                                                 | 说明   |
| --------------------------------------------------------------------------------------------------- | ---- |
| [AttributeComponent](https://ersha.gitbook.io/attributeplus-pro/kai-fa-wen-dang/attributecomponent) | 属性组件 |
| ReadComponent                                                                                       | 读取组件 |

## 注释

| 注释名              | 说明                         |
| ---------------- | -------------------------- |
| @AutoRegister    | 自动注册组件                     |
| @AutoIncreaseKey | 自动新增标签 (ReadComponent 会介绍) |


---

# Agent Instructions: 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://ersha.gitbook.io/attributeplus-pro/kai-fa-wen-dang.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.
