Documentation

ItemStack
in package
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

Properties

$canDestroy

private array<string|int, mixed> $canDestroy

$canPlaceOn

private array<string|int, mixed> $canPlaceOn

$shieldBlockingTick

private int|null $shieldBlockingTick

Methods

__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

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

getMeta()

public getMeta() : int
Return values
int

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

Search results