Skip to content

Trident ​

class · pocketmine\item\Trident · source

Extends Tool
Implements Releasable

Methods ​

canStartUsingItem() ​

php
public function canStartUsingItem(\pocketmine\player\Player $player) : bool

getAttackPoints() ​

php
public function getAttackPoints() : int

getMaxDurability() ​

php
public function getMaxDurability() : int

onAttackEntity() ​

php
public function onAttackEntity(\pocketmine\entity\Entity $victim, array &$returnedItems) : bool

onDestroyBlock() ​

php
public function onDestroyBlock(\pocketmine\block\Block $block, array &$returnedItems) : bool

onReleaseUsing() ​

php
public function onReleaseUsing(\pocketmine\player\Player $player, array &$returnedItems) : \pocketmine\item\ItemUseResult

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