|
60 | 60 |
|
61 | 61 | 每一个物品对象都包含一些固定的对象属性。对于某个特定的物品对象`it`,有以下这些属性 |
62 | 62 |
|
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` | |
84 | 84 | | 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` | |
90 | 90 |
|
91 | 91 | 这些对象属性都是只读的,无法被修改 |
92 | 92 |
|
|
0 commit comments