ItemStack
implements
JsonSerializable
Interfaces, Classes, Traits and Enums
- JsonSerializable
Table of Contents
-
$blockRuntimeId
: int
-
$canDestroy
: array<string|int, mixed>
-
$canPlaceOn
: array<string|int, mixed>
-
$count
: int
-
$id
: int
-
$meta
: int
-
$nbt
: CompoundTag|null
-
$shieldBlockingTick
: int|null
-
__construct()
: mixed
-
equals()
: bool
-
getBlockRuntimeId()
: int
-
getCanDestroy()
: array<string|int, string>
-
getCanPlaceOn()
: array<string|int, string>
-
getCount()
: int
-
getId()
: int
-
getMeta()
: int
-
getNbt()
: CompoundTag|null
-
getShieldBlockingTick()
: int|null
-
jsonSerialize()
: array<string|int, mixed>
-
null()
: self
$blockRuntimeId
private
int
$blockRuntimeId
$canDestroy
private
array<string|int, mixed>
$canDestroy
$canPlaceOn
private
array<string|int, mixed>
$canPlaceOn
$count
private
int
$count
$id
private
int
$id
private
int
$meta
$nbt
private
CompoundTag|null
$nbt
$shieldBlockingTick
private
int|null
$shieldBlockingTick
__construct()
public
__construct(int $id, int $meta, int $count, int $blockRuntimeId, CompoundTag|null $nbt, array<string|int, string> $canPlaceOn, array<string|int, string> $canDestroy[, int|null $shieldBlockingTick = null ]) : mixed
Parameters
-
$id
: int
-
-
$meta
: int
-
-
$count
: int
-
-
$blockRuntimeId
: int
-
-
$nbt
: CompoundTag|null
-
-
$canPlaceOn
: array<string|int, string>
-
-
$canDestroy
: array<string|int, string>
-
-
$shieldBlockingTick
: int|null
= null
-
Return values
mixed
—
equals()
public
equals(ItemStack $itemStack) : bool
Parameters
-
$itemStack
: ItemStack
-
Return values
bool
—
getBlockRuntimeId()
public
getBlockRuntimeId() : int
Return values
int
—
getCanDestroy()
public
getCanDestroy() : array<string|int, string>
Return values
array<string|int, string>
—
getCanPlaceOn()
public
getCanPlaceOn() : array<string|int, string>
Return values
array<string|int, string>
—
getCount()
public
getCount() : int
Return values
int
—
getId()
public
getId() : int
Return values
int
—
public
getMeta() : int
Return values
int
—
getNbt()
public
getNbt() : CompoundTag|null
Return values
CompoundTag|null
—
getShieldBlockingTick()
public
getShieldBlockingTick() : int|null
Return values
int|null
—
jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>
—
null()
public
static null() : self
Return values
self
—