Skip to content

InfestedStone ​

class · pocketmine\block\InfestedStone · source

Extends Opaque

Methods ​

__construct() ​

php
public function __construct(\pocketmine\block\BlockIdentifier $idInfo, string $name, \pocketmine\block\BlockTypeInfo $typeInfo, \pocketmine\block\Block $imitated)

getDropsForCompatibleTool() ​

php
public function getDropsForCompatibleTool(\pocketmine\item\Item $item) : array

getImitatedBlock() ​

php
public function getImitatedBlock() : \pocketmine\block\Block

getSilkTouchDrops() ​

php
public function getSilkTouchDrops(\pocketmine\item\Item $item) : array

isAffectedBySilkTouch() ​

php
public function isAffectedBySilkTouch() : bool

onBreak() 5.46.0 ​

php
public function onBreak(\pocketmine\item\Item $item, ?\pocketmine\player\Player $player = null, array &$returnedItems = []) : bool

Breaking an infested block (without Silk Touch) releases the silverfish hiding in it.

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