EndCrystal
Extends Item
End crystal item: placed on top of obsidian or bedrock when the two blocks above are air and no entity is in the way. In the End, placing the fourth crystal around the exit portal starts the ender dragon respawn (see DragonFight::tryRespawn()).
Methods
onInteractBlock()
php
public function onInteractBlock(\pocketmine\player\Player $player, \pocketmine\block\Block $blockReplace, \pocketmine\block\Block $blockClicked, int $face, \pocketmine\math\Vector3 $clickVector, array &$returnedItems) : \pocketmine\item\ItemUseResult