Skip to content

EntityFrostWalkerEvent ​

class · pocketmine\event\entity\EntityFrostWalkerEvent · source

Extends EntityEvent
Implements Cancellable

Called when an entity moves horizontally while wearing boots enchanted with Frost Walker.

Methods ​

__construct() ​

php
public function __construct(\pocketmine\entity\Living $entity, int $radius, \pocketmine\block\Liquid $liquid, \pocketmine\block\Block $targetBlock)

getLiquid() ​

php
public function getLiquid() : \pocketmine\block\Liquid

Returns the liquid that gets frozen

getRadius() ​

php
public function getRadius() : int

getTargetBlock() ​

php
public function getTargetBlock() : \pocketmine\block\Block

Returns the block that replaces the liquid

setLiquid() ​

php
public function setLiquid(\pocketmine\block\Liquid $liquid) : void

Sets the liquid that gets frozen

setRadius() ​

php
public function setRadius(int $radius) : void

setTargetBlock() ​

php
public function setTargetBlock(\pocketmine\block\Block $targetBlock) : void

Sets the block that replaces the liquid

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