# 开发兼容

## 介绍

你需要有 Kotlin、Java 及 Bukkit 开发基础，API插件可在售后群文件内下载

## 教程

* [兼容其他属性插件](https://ersha.gitbook.io/code-new/attributeinventory/attribute-inventory/kai-fa-jian-rong/shu-xing-jian-rong)
* [获取装备数据](https://ersha.gitbook.io/code-new/attributeinventory/attribute-inventory/kai-fa-jian-rong/huo-qu-zhuang-bei)
* [API](https://ersha.gitbook.io/code-new/attributeinventory/attribute-inventory/kai-fa-jian-rong/api)

## 事件

* ```kotlin
  /* 玩家在背包组界面翻页时触发 */
  InventoryPageUpdateEvent(val player: Player, val page: IInventoryPage, val changedState: Boolean)
  ```
* ```kotlin
  /**
   * 玩家关闭背包页时触发 (非翻页)
   * 玩家登录时刷新所有装备页时触发,该情况下 [changedState] 一定为 true
   */
  InventoryContentUpdateEvent(val player: Player, val content: IInventoryContent, val changedState: Boolean)
  ```
* ```kotlin
  /**
   * 玩家套装触发事件
   **/
  InventorySuitTriggerEvent(val player: Player, val suit: String, val number: Int, var attribute: List<String>) 
  ```


---

# 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/code-new/attributeinventory/attribute-inventory/kai-fa-jian-rong.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.
