Skip to content

Sword ​

class · pocketmine\item\Sword · source

Extends TieredTool

Methods ​

getAttackPoints() ​

php
public function getAttackPoints() : int

getBaseMiningEfficiency() protected ​

php
protected function getBaseMiningEfficiency() : float

getBlockToolHarvestLevel() ​

php
public function getBlockToolHarvestLevel() : int

getBlockToolType() ​

php
public function getBlockToolType() : int

getMiningEfficiency() ​

php
public function getMiningEfficiency(bool $isCorrectTool) : float

onAttackEntity() ​

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

onDestroyBlock() ​

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

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