Definition at line 19 of file ItemStack.php.
◆ __construct()
pocketmine\network\mcpe\protocol\types\inventory\ItemStack::__construct |
( |
private int |
$id, |
|
|
private int |
$meta, |
|
|
private int |
$count, |
|
|
private int |
$blockRuntimeId, |
|
|
private string |
$rawExtraData |
|
) |
| |
- Parameters
-
- See also
- ItemStackExtraData::write()
Definition at line 24 of file ItemStack.php.
◆ equals()
pocketmine\network\mcpe\protocol\types\inventory\ItemStack::equals |
( |
ItemStack |
$itemStack | ) |
|
◆ equalsWithoutCount()
pocketmine\network\mcpe\protocol\types\inventory\ItemStack::equalsWithoutCount |
( |
ItemStack |
$itemStack | ) |
|
◆ getBlockRuntimeId()
pocketmine\network\mcpe\protocol\types\inventory\ItemStack::getBlockRuntimeId |
( |
| ) |
|
◆ getCount()
pocketmine\network\mcpe\protocol\types\inventory\ItemStack::getCount |
( |
| ) |
|
◆ getId()
pocketmine\network\mcpe\protocol\types\inventory\ItemStack::getId |
( |
| ) |
|
◆ getMeta()
pocketmine\network\mcpe\protocol\types\inventory\ItemStack::getMeta |
( |
| ) |
|
◆ getRawExtraData()
pocketmine\network\mcpe\protocol\types\inventory\ItemStack::getRawExtraData |
( |
| ) |
|
Decode this into ItemStackExtraData using ItemStackExtraData::read() (or ItemStackExtraDataShield::read() if this data is for a shield item) This isn't automatically decoded because it's usually not needed and is sometimes expensive to decode.
- See also
- ItemStackExtraData::read()
-
ItemStackExtraDataShield::read()
Definition at line 61 of file ItemStack.php.
◆ isNull()
pocketmine\network\mcpe\protocol\types\inventory\ItemStack::isNull |
( |
| ) |
|
◆ jsonSerialize()
pocketmine\network\mcpe\protocol\types\inventory\ItemStack::jsonSerialize |
( |
| ) |
|
◆ null()
static pocketmine\network\mcpe\protocol\types\inventory\ItemStack::null |
( |
| ) |
|
|
static |
The documentation for this class was generated from the following file: