Skip to content

ToolTier ​

enum · pocketmine\item\ToolTier · source

TODO: These tags need to be removed once we get rid of LegacyEnumShimTrait (PM6) These are retained for backwards compatibility only.

Cases ​

COPPER ​

php
case COPPER

DIAMOND ​

php
case DIAMOND

GOLD ​

php
case GOLD

IRON ​

php
case IRON

NETHERITE ​

php
case NETHERITE

STONE ​

php
case STONE

WOOD ​

php
case WOOD

Methods ​

getBaseAttackPoints() ​

php
public function getBaseAttackPoints() : int

getBaseEfficiency() ​

php
public function getBaseEfficiency() : int

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.

getHarvestLevel() ​

php
public function getHarvestLevel() : int

getMaxDurability() ​

php
public function getMaxDurability() : int

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