Difference between revisions of "ItemStack (Class)"
From 8x9craft
N.yamamoto (talk | contribs) m (N.yamamoto moved page ItemInfo (Class) to ItemStack (Class)) |
N.yamamoto (talk | contribs) |
||
Line 1: | Line 1: | ||
[[Category:APIs]] | [[Category:APIs]] | ||
− | + | crabの持ち物のアイテムスロットについての情報を保持します。 | |
− | + | [[crab.itemAt()]]メソッドで取得することができます。 | |
{| class="example" | {| class="example" | ||
− | ! | + | ! フィールド |
− | ! | + | ! 説明 |
|- | |- | ||
| readonly id: number | | readonly id: number | ||
− | | | + | | アイテムID 例. Woodは17, Grass Blockは2, Woolは35 |
|- | |- | ||
| readonly name: string | | readonly name: string | ||
− | | | + | | アイテム名 例. "Wood", "Grass Block", "Wool" |
|- | |- | ||
| readonly fullName: string | | readonly fullName: string | ||
− | | | + | | アイテムのレジストリ識別番号 例. "minecraft:log", "minecraft:grass", "minecraft:wool" |
|- | |- | ||
| readonly meta: number | | readonly meta: number | ||
− | | | + | | アイテムの種類 例. Woolは0、Red Woolは14 |
|- | |- | ||
| readonly stackSize: number | | readonly stackSize: number | ||
− | | | + | | 指定した持ち物スロットに積み重ねられたアイテムの数 |
|} | |} |
Latest revision as of 04:36, 14 July 2017
crabの持ち物のアイテムスロットについての情報を保持します。
crab.itemAt()メソッドで取得することができます。
フィールド | 説明 |
---|---|
readonly id: number | アイテムID 例. Woodは17, Grass Blockは2, Woolは35 |
readonly name: string | アイテム名 例. "Wood", "Grass Block", "Wool" |
readonly fullName: string | アイテムのレジストリ識別番号 例. "minecraft:log", "minecraft:grass", "minecraft:wool" |
readonly meta: number | アイテムの種類 例. Woolは0、Red Woolは14 |
readonly stackSize: number | 指定した持ち物スロットに積み重ねられたアイテムの数 |