Skip to content

Commit 03902a9

Browse files
committed
docs: fix some mistakes #189
1 parent 778c86b commit 03902a9

File tree

3 files changed

+29
-29
lines changed

3 files changed

+29
-29
lines changed

docs/apis/GameAPI/Item.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ Through this function, a new item object is generated using NBT.
6060
Every item object contains some fixed object properties. For a specific item object `it`, there are the following attributes:
6161

6262
| Attributes | Meaning | Data Type |
63-
| ------------------- | -------------------------------------------------------- | -------------------------- |
63+
|---------------------|----------------------------------------------------------|----------------------------|
6464
| it.name | Item's in-game name | `String` |
6565
| it.type | Item Standard Type Name | `String` |
6666
| it.id | Item's in-game ID | `Integer` |
6767
| it.count | Item's count | `Integer` |
6868
| it.aux | Item's data value (for example, wool color or wood type) | `Integer` |
6969
| it.lore | Item Lore | `Array<String, String...>` |
70-
| it.damage | Item Current Damage | `Integer` |
70+
| it.damage | Item Consumed Damage | `Integer` |
7171
| it.attackDamage | Item Attack Damage | `Integer` |
7272
| it.maxDamage | Item Max Damage | `Integer` |
7373
| it.isArmorItem | Whether the item is armor item | `Boolean` |

docs/apis/GameAPI/Item.zh.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -60,33 +60,33 @@
6060

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

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

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

docs/apis/GameAPI/Player.zh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@
10311031
- 参数:
10321032

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

10361036
- 返回值:是否成功修改
10371037

0 commit comments

Comments
 (0)