Skip to content

SimpleDurableItem 5.46.0 ​

class · pocketmine\item\SimpleDurableItem · source

Extends Durable

A durable item that doesn't stack and has no behaviour of its own yet: carrot and warped fungus on a stick (used to steer pigs and striders), wolf armor. It can be enchanted and repaired like other durable items.

Methods ​

__construct() ​

php
public function __construct(\pocketmine\item\ItemIdentifier $identifier, string $name, int $maxDurability, array $enchantmentTags = [])

getMaxDurability() ​

php
public function getMaxDurability() : int

getMaxStackSize() ​

php
public function getMaxStackSize() : int

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