Skip to content

ArmorMaterial ​

class · pocketmine\item\ArmorMaterial · source

Methods ​

__construct() ​

php
public function __construct(int $enchantability, ?\pocketmine\world\sound\Sound $equipSound = null)

getEnchantability() ​

php
public function getEnchantability() : int

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.

getEquipSound() ​

php
public function getEquipSound() : ?\pocketmine\world\sound\Sound

Returns the sound that plays when equipping the armor

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.