PocketMine-MP 5.15.1 git-5ef247620a7c6301a849b54e5ef1009217729fc8
pocketmine\network\mcpe\protocol\types\Enchant Class Reference
+ Collaboration diagram for pocketmine\network\mcpe\protocol\types\Enchant:

Public Member Functions

 __construct (private int $id, private int $level)
 
 getId ()
 
 getLevel ()
 
 write (PacketSerializer $out)
 

Static Public Member Functions

static read (PacketSerializer $in)
 

Detailed Description

Definition at line 19 of file Enchant.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\network\mcpe\protocol\types\Enchant::__construct ( private int  $id,
private int  $level 
)

Definition at line 20 of file Enchant.php.

Member Function Documentation

◆ getId()

pocketmine\network\mcpe\protocol\types\Enchant::getId ( )

Definition at line 25 of file Enchant.php.

◆ getLevel()

pocketmine\network\mcpe\protocol\types\Enchant::getLevel ( )

Definition at line 27 of file Enchant.php.

◆ read()

static pocketmine\network\mcpe\protocol\types\Enchant::read ( PacketSerializer  $in)
static

Definition at line 29 of file Enchant.php.

◆ write()

pocketmine\network\mcpe\protocol\types\Enchant::write ( PacketSerializer  $out)

Definition at line 35 of file Enchant.php.


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