Skip to content

ImpalingEnchantment 5.46.0 ​

class · pocketmine\item\enchantment\ImpalingEnchantment · source

Extends MeleeWeaponEnchantment

Impaling (Bedrock rule): 2.5 extra damage per level against mobs touching water or standing in the rain.

Methods ​

getDamageBonus() ​

php
public function getDamageBonus(int $enchantmentLevel) : float

isApplicableTo() ​

php
public function isApplicableTo(\pocketmine\entity\Entity $victim) : bool

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