Skip to content

UnstackableItem 5.46.0 ​

class · pocketmine\item\UnstackableItem · source

Extends Item

An item without behaviour of its own that doesn't stack, e.g. mob equipment (saddles, horse armor) for mobs that PocketMine doesn't have.

Methods ​

__construct() ​

php
public function __construct(\pocketmine\item\ItemIdentifier $identifier, string $name = "Unknown", array $enchantmentTags = [], bool $fireProof = false)

getMaxStackSize() ​

php
public function getMaxStackSize() : int

isFireProof() ​

php
public function isFireProof() : bool

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