Difference between revisions of "ItemStack (Class)"

From 8x9craft
Jump to: navigation, search
m (N.yamamoto moved page ItemInfo (Class) to ItemStack (Class))
 
Line 1: Line 1:
 
[[Category:APIs]]
 
[[Category:APIs]]
Holds information about an item slot in crab's inventory.
+
crabの持ち物のアイテムスロットについての情報を保持します。
  
It is returned by [[crab.itemAt()]] method.
+
[[crab.itemAt()]]メソッドで取得することができます。
  
 
{| class="example"
 
{| class="example"
! Field
+
! フィールド
! Description
+
! 説明
 
|-
 
|-
 
| readonly id: number
 
| readonly id: number
| Item id, e.g. 17 for Wood, 2 for Grass Block, 35 for "Wool".
+
| アイテムID 例. Woodは17, Grass Blockは2, Woolは35
 
|-
 
|-
 
| readonly name: string
 
| readonly name: string
| Item name, e.g. "Wood", "Grass Block", "Wool".
+
| アイテム名 例. "Wood", "Grass Block", "Wool"
 
|-
 
|-
 
| readonly fullName: string
 
| readonly fullName: string
| Item's registry identifier, e.g. "minecraft:log", "minecraft:grass", "minecraft:wool".
+
| アイテムのレジストリ識別番号 例. "minecraft:log", "minecraft:grass", "minecraft:wool"
 
|-
 
|-
 
| readonly meta: number
 
| readonly meta: number
| Item's variation, e.g. 0 for Wool, 14 for Red Wool.
+
| アイテムの種類 例. Woolは0、Red Woolは14
 
|-
 
|-
 
| readonly stackSize: number
 
| readonly stackSize: number
| The number of items that are stacked at a given inventory slot.
+
| 指定した持ち物スロットに積み重ねられたアイテムの数
 
|}
 
|}

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 指定した持ち物スロットに積み重ねられたアイテムの数

Navigation menu

Internal error

Jump to: navigation, search
[627d648d7d1e5000ea8d7b4e] 2024-03-28 16:08:41: Fatal exception of type "Error"

Navigation menu