Skip to content

Commit

Permalink
docs: fix some mistakes #189
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Nov 29, 2024
1 parent 778c86b commit 03902a9
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 29 deletions.
4 changes: 2 additions & 2 deletions docs/apis/GameAPI/Item.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ Through this function, a new item object is generated using NBT.
Every item object contains some fixed object properties. For a specific item object `it`, there are the following attributes:

| Attributes | Meaning | Data Type |
| ------------------- | -------------------------------------------------------- | -------------------------- |
|---------------------|----------------------------------------------------------|----------------------------|
| it.name | Item's in-game name | `String` |
| it.type | Item Standard Type Name | `String` |
| it.id | Item's in-game ID | `Integer` |
| it.count | Item's count | `Integer` |
| it.aux | Item's data value (for example, wool color or wood type) | `Integer` |
| it.lore | Item Lore | `Array<String, String...>` |
| it.damage | Item Current Damage | `Integer` |
| it.damage | Item Consumed Damage | `Integer` |
| it.attackDamage | Item Attack Damage | `Integer` |
| it.maxDamage | Item Max Damage | `Integer` |
| it.isArmorItem | Whether the item is armor item | `Boolean` |
Expand Down
52 changes: 26 additions & 26 deletions docs/apis/GameAPI/Item.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,33 +60,33 @@

每一个物品对象都包含一些固定的对象属性。对于某个特定的物品对象`it`,有以下这些属性

| 属性 | 含义 | 类型 |
| ------------------- | ------------------------------- | -------------------------- |
| it.name | 游戏内显示的物品名称 | `String` |
| it.type | 物品标准类型名 | `String` |
| it.id | 物品的游戏内id | `Integer` |
| it.count | 这个物品对象堆叠的个数 | `Integer` |
| it.aux | 物品附加值(如羊毛颜色) | `Integer` |
| it.damage | 物品当前耐久 | `Integer` |
| it.attackDamage | 物品攻击伤害 | `Integer` |
| it.maxDamage | 物品最大耐久 | `Integer` |
| it.lore | 物品Lore | `Array<String, String...>` |
| it.isArmorItem | 物品是否为盔甲 | `Boolean` |
| it.isBlock | 物品是否为方块 | `Boolean` |
| it.isDamageableItem | 物品是否可被破坏 | `Boolean` |
| it.isDamaged | 物品耐久是否被消耗 | `Boolean` |
| it.isEnchanted | 物品是否已被附魔 | `Boolean` |
| it.isEnchantingBook | 物品是否为附魔书 | `Boolean` |
| it.isFireResistant | 物品是否防火 | `Boolean` |
| it.isFullStack | 物品是否已堆叠到最大堆叠数 | `Boolean` |
| it.isGlint | 物品是否闪烁 | `Boolean` |
| it.isHorseArmorItem | 物品是否为马铠 | `Boolean` |
| 属性 | 含义 | 类型 |
|---------------------|---------------------------------|----------------------------|
| it.name | 游戏内显示的物品名称 | `String` |
| it.type | 物品标准类型名 | `String` |
| it.id | 物品的游戏内id | `Integer` |
| it.count | 这个物品对象堆叠的个数 | `Integer` |
| it.aux | 物品附加值(如羊毛颜色) | `Integer` |
| it.damage | 物品已消耗耐久 | `Integer` |
| it.attackDamage | 物品攻击伤害 | `Integer` |
| it.maxDamage | 物品最大耐久 | `Integer` |
| it.lore | 物品Lore | `Array<String, String...>` |
| it.isArmorItem | 物品是否为盔甲 | `Boolean` |
| it.isBlock | 物品是否为方块 | `Boolean` |
| it.isDamageableItem | 物品是否可被破坏 | `Boolean` |
| it.isDamaged | 物品耐久是否被消耗 | `Boolean` |
| it.isEnchanted | 物品是否已被附魔 | `Boolean` |
| it.isEnchantingBook | 物品是否为附魔书 | `Boolean` |
| it.isFireResistant | 物品是否防火 | `Boolean` |
| it.isFullStack | 物品是否已堆叠到最大堆叠数 | `Boolean` |
| it.isGlint | 物品是否闪烁 | `Boolean` |
| it.isHorseArmorItem | 物品是否为马铠 | `Boolean` |
| it.isLiquidClipItem | Whether the item is liquid clip | `Boolean` |
| it.isMusicDiscItem | 物品是否为唱片 | `Boolean` |
| it.isOffhandItem | 物品是否可设置到副手 | `Boolean` |
| it.isPotionItem | 物品是否为药水 | `Boolean` |
| it.isStackable | 物品是否可堆叠 | `Boolean` |
| it.isWearableItem | 物品是否可穿戴 | `Boolean` |
| it.isMusicDiscItem | 物品是否为唱片 | `Boolean` |
| it.isOffhandItem | 物品是否可设置到副手 | `Boolean` |
| it.isPotionItem | 物品是否为药水 | `Boolean` |
| it.isStackable | 物品是否可堆叠 | `Boolean` |
| it.isWearableItem | 物品是否可穿戴 | `Boolean` |

这些对象属性都是只读的,无法被修改

Expand Down
2 changes: 1 addition & 1 deletion docs/apis/GameAPI/Player.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,7 @@
- 参数:

- mode : `Integer`
目标游戏模式,0为生存模式,1为创造模式,2为冒险模式, 3为观察者模式
目标游戏模式,0为生存模式,1为创造模式,2为冒险模式, 6为观察者模式

- 返回值:是否成功修改

Expand Down

0 comments on commit 03902a9

Please sign in to comment.