CreativeCreateStackRequestAction
extends ItemStackRequestAction
in package
Uses
GetTypeIdFromConstTrait
Creates an item by copying it from the creative inventory. This is treated as a crafting action by vanilla.
Table of Contents
- ID = \pocketmine\network\mcpe\protocol\types\inventory\stackrequest\ItemStackRequestActionType::CREATIVE_CREATE
- $creativeItemId : int
- __construct() : mixed
- getCreativeItemId() : int
- getTypeId() : int
- read() : self
- write() : void
Constants
ID
public
mixed
ID
= \pocketmine\network\mcpe\protocol\types\inventory\stackrequest\ItemStackRequestActionType::CREATIVE_CREATE
Properties
$creativeItemId
private
int
$creativeItemId
Methods
__construct()
public
__construct(int $creativeItemId) : mixed
Parameters
- $creativeItemId : int
Return values
mixed —getCreativeItemId()
public
getCreativeItemId() : int
Return values
int —getTypeId()
public
abstract getTypeId() : int
Return values
int —read()
public
static read(PacketSerializer $in) : self
Parameters
- $in : PacketSerializer
Return values
self —write()
public
write(PacketSerializer $out) : void
Parameters
- $out : PacketSerializer