Skip to content

FishingRod ​

class · pocketmine\item\FishingRod · source

Extends Durable

Fishing rod: using it casts a bobber (see FishingHook); using it again reels the line in.

Constants ​

CAST_SPEED 5.46.0 ​

php
public const CAST_SPEED = 0.6

Speed of the cast bobber (vanilla FishingHook: 0.6 blocks per tick).

Methods ​

getMaxDurability() ​

php
public function getMaxDurability() : int

getMaxStackSize() ​

php
public function getMaxStackSize() : int

onClickAir() 5.46.0 ​

php
public function onClickAir(\pocketmine\player\Player $player, \pocketmine\math\Vector3 $directionVector, array &$returnedItems) : \pocketmine\item\ItemUseResult

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