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

Public Member Functions

 __construct (private int $recipeId, private int $repairCost, private int $repetitions)
 
 getRecipeId ()
 
 getRepairCost ()
 
 getRepetitions ()
 
 getTypeId ()
 
 write (ByteBufferWriter $out)
 

Static Public Member Functions

static read (ByteBufferReader $in)
 

Public Attributes

const ID = ItemStackRequestActionType::CRAFTING_GRINDSTONE
 

Detailed Description

Repair and/or remove enchantments from an item in a grindstone.

Definition at line 27 of file GrindstoneStackRequestAction.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\network\mcpe\protocol\types\inventory\stackrequest\GrindstoneStackRequestAction::__construct ( private int $recipeId,
private int $repairCost,
private int $repetitions )

Definition at line 32 of file GrindstoneStackRequestAction.php.

Member Function Documentation

◆ getRecipeId()

pocketmine\network\mcpe\protocol\types\inventory\stackrequest\GrindstoneStackRequestAction::getRecipeId ( )

Definition at line 38 of file GrindstoneStackRequestAction.php.

◆ getRepairCost()

pocketmine\network\mcpe\protocol\types\inventory\stackrequest\GrindstoneStackRequestAction::getRepairCost ( )

WARNING: This may be negative

Definition at line 41 of file GrindstoneStackRequestAction.php.

◆ getRepetitions()

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

Definition at line 43 of file GrindstoneStackRequestAction.php.

◆ read()

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

Definition at line 45 of file GrindstoneStackRequestAction.php.

◆ write()

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

Member Data Documentation

◆ ID

const pocketmine\network\mcpe\protocol\types\inventory\stackrequest\GrindstoneStackRequestAction::ID = ItemStackRequestActionType::CRAFTING_GRINDSTONE

Definition at line 30 of file GrindstoneStackRequestAction.php.


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