# 开发文档

## 说明

阅读以下内容,你需掌握 Java基础 及 Bukkit开发基础

## **Maven**

```
        <repository>
            <id>handy-minecraft</id>
            <url>http://maven.ljxmc.top/repository/handy-minecraft/</url>
        </repository>
```

```
        <dependency>
            <groupId>org.serverct.ersha.jd</groupId>
            <artifactId>AttributePlus</artifactId>
            <version>2.2.5</version>
            <scope>provided</scope>
        </dependency
```

## API

| 页面                 | 描述      |
| ------------------ | ------- |
| AttributeAPI       | 插件基础API |
| EntityAttributeAPI | 实体属性API |

## 枚举

| 枚举类           | 描述                                      |
| ------------- | --------------------------------------- |
| AttributeType | 注册属性时的属性类型 (2.X+)                       |
| EquipmentType | 装备储存类型 (用于 EquipmentData 装备数据储存) (2.X+) |
| AttributeName | 插件自带的属性默认名及服务器属性名 (2.2.5+)              |

> AttributeName 的属性默认名及服务器属性名获取方法分别为 getDefaultName() / getName()

## 事件

| 事件                       | 描述       |
| ------------------------ | -------- |
| AttrAttributeUpdateEvent | 实体属性更新事件 |
| AttrEquipmentUpdateEvent | 实体装备更新事件 |
| AttrEntityTriggerEvent   | 实体触发属性事件 |
| AttrEntityDamageEvent    | 实体攻击事件   |
| AttrEntityVampireEvent   | 实体吸血事件   |
| AttrEntityCritEvent      | 实体暴击事件   |
| AttrShieldBlockEvent     | 盾牌抵挡事件   |

## 分布

| 类             | 描述     |
| ------------- | ------ |
| AttributeData | 实体属性数据 |
| EquipmentData | 实体装备数据 |


---

# 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/kai-fa-wen-dang-1/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.
