Sword
Extends TieredTool
Methods
getAttackPoints()
php
public function getAttackPoints() : intgetBaseMiningEfficiency() protected
php
protected function getBaseMiningEfficiency() : floatgetBlockToolHarvestLevel()
php
public function getBlockToolHarvestLevel() : intgetBlockToolType()
php
public function getBlockToolType() : intgetMiningEfficiency()
php
public function getMiningEfficiency(bool $isCorrectTool) : floatonAttackEntity()
php
public function onAttackEntity(\pocketmine\entity\Entity $victim, array &$returnedItems) : boolonDestroyBlock()
php
public function onDestroyBlock(\pocketmine\block\Block $block, array &$returnedItems) : bool