EnderEye 5.46.0
Extends Item
Eye of ender: placed into End portal frames; the twelfth eye of a ring opens the portal. Thrown in the air it flies towards the nearest stronghold (see EyeOfEnderSignal), in worlds whose generator can locate strongholds.
Methods
onClickAir()
php
public function onClickAir(\pocketmine\player\Player $player, \pocketmine\math\Vector3 $directionVector, array &$returnedItems) : \pocketmine\item\ItemUseResultThrows the eye towards the nearest stronghold within 100 chunks (vanilla EnderEyeItem.use). The search may run off the main thread: the eye is taken right away and given back if no stronghold is found.
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