> For the complete documentation index, see [llms.txt](https://ersha.gitbook.io/attributeplus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ersha.gitbook.io/attributeplus/kai-fa-wen-dang-1/kai-fa-wen-dang.md).

# 开发文档

## 说明

阅读以下内容,你需掌握 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 | 实体装备数据 |
