CraftingConsumeInputStackRequestAction
extends ItemStackRequestAction
in package
Uses
DisappearStackRequestActionTrait, GetTypeIdFromConstTrait
Sends some (or all) items from the source slot to the magic place where crafting ingredients turn into result items.
Table of Contents
- ID = \pocketmine\network\mcpe\protocol\types\inventory\stackrequest\ItemStackRequestActionType::CRAFTING_CONSUME_INPUT
- $count : int
- $source : ItemStackRequestSlotInfo
- __construct() : mixed
- getCount() : int
- getSource() : ItemStackRequestSlotInfo
- getTypeId() : int
- read() : self
- write() : void
Constants
ID
public
mixed
ID
= \pocketmine\network\mcpe\protocol\types\inventory\stackrequest\ItemStackRequestActionType::CRAFTING_CONSUME_INPUT
Properties
$count
private
int
$count
$source
private
ItemStackRequestSlotInfo
$source
Methods
__construct()
public
final __construct(int $count, ItemStackRequestSlotInfo $source) : mixed
Parameters
- $count : int
- $source : ItemStackRequestSlotInfo
Return values
mixed —getCount()
public
final getCount() : int
Return values
int —getSource()
public
final getSource() : ItemStackRequestSlotInfo
Return values
ItemStackRequestSlotInfo —getTypeId()
public
abstract getTypeId() : int
Return values
int —read()
public
static read(PacketSerializer $in) : self
Parameters
- $in : PacketSerializer
Return values
self —write()
public
abstract write(PacketSerializer $out) : void
Parameters
- $out : PacketSerializer