PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
Loading...
Searching...
No Matches
pocketmine\item\ArmorMaterial Class Reference
+ Collaboration diagram for pocketmine\item\ArmorMaterial:

Public Member Functions

 __construct (private readonly int $enchantability, private readonly ?Sound $equipSound=null)
 
 getEnchantability ()
 
 getEquipSound ()
 

Detailed Description

Definition at line 28 of file ArmorMaterial.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\item\ArmorMaterial::__construct ( private readonly int $enchantability,
private readonly ?Sound $equipSound = null )

Definition at line 30 of file ArmorMaterial.php.

Member Function Documentation

◆ getEnchantability()

pocketmine\item\ArmorMaterial::getEnchantability ( )

Returns the value that defines how enchantable the item is.

The higher an item's enchantability is, the more likely it will be to gain high-level enchantments or multiple enchantments upon being enchanted in an enchanting table.

Definition at line 42 of file ArmorMaterial.php.

◆ getEquipSound()

pocketmine\item\ArmorMaterial::getEquipSound ( )

Returns the sound that plays when equipping the armor

Definition at line 49 of file ArmorMaterial.php.


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