PocketMine-MP 5.42.1 git-d77520d210fcb967a02bc11817ad625393c8ebc6
Loading...
Searching...
No Matches
pocketmine\network\mcpe\protocol\types\inventory\stackrequest\CreativeCreateStackRequestAction Class Reference
+ Inheritance diagram for pocketmine\network\mcpe\protocol\types\inventory\stackrequest\CreativeCreateStackRequestAction:
+ Collaboration diagram for pocketmine\network\mcpe\protocol\types\inventory\stackrequest\CreativeCreateStackRequestAction:

Public Member Functions

 __construct (private int $creativeItemId, private int $repetitions)
 
 getCreativeItemId ()
 
 getRepetitions ()
 
 getTypeId ()
 
 write (ByteBufferWriter $out)
 

Static Public Member Functions

static read (ByteBufferReader $in)
 

Public Attributes

const ID = ItemStackRequestActionType::CREATIVE_CREATE
 

Detailed Description

Creates an item by copying it from the creative inventory. This is treated as a crafting action by vanilla.

Definition at line 26 of file CreativeCreateStackRequestAction.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\network\mcpe\protocol\types\inventory\stackrequest\CreativeCreateStackRequestAction::__construct ( private int $creativeItemId,
private int $repetitions )

Definition at line 31 of file CreativeCreateStackRequestAction.php.

Member Function Documentation

◆ getCreativeItemId()

pocketmine\network\mcpe\protocol\types\inventory\stackrequest\CreativeCreateStackRequestAction::getCreativeItemId ( )

Definition at line 36 of file CreativeCreateStackRequestAction.php.

◆ getRepetitions()

pocketmine\network\mcpe\protocol\types\inventory\stackrequest\CreativeCreateStackRequestAction::getRepetitions ( )

Definition at line 38 of file CreativeCreateStackRequestAction.php.

◆ read()

static pocketmine\network\mcpe\protocol\types\inventory\stackrequest\CreativeCreateStackRequestAction::read ( ByteBufferReader $in)
static

Definition at line 40 of file CreativeCreateStackRequestAction.php.

◆ write()

pocketmine\network\mcpe\protocol\types\inventory\stackrequest\CreativeCreateStackRequestAction::write ( ByteBufferWriter $out)

Member Data Documentation

◆ ID

const pocketmine\network\mcpe\protocol\types\inventory\stackrequest\CreativeCreateStackRequestAction::ID = ItemStackRequestActionType::CREATIVE_CREATE

Definition at line 29 of file CreativeCreateStackRequestAction.php.


The documentation for this class was generated from the following file: