PocketMine-MP 5.28.3 git-d5a1007c80fcee27feb2251cf5dcf1ad5a59a85c
Loading...
Searching...
No Matches
pocketmine\event\entity\EntityFrostWalkerEvent Class Reference
+ Inheritance diagram for pocketmine\event\entity\EntityFrostWalkerEvent:
+ Collaboration diagram for pocketmine\event\entity\EntityFrostWalkerEvent:

Public Member Functions

 __construct (Living $entity, private int $radius, private Liquid $liquid, private Block $targetBlock)
 
 call ()
 
 getEntity ()
 
 getEventName ()
 
 getLiquid ()
 
 getRadius ()
 
 getTargetBlock ()
 
 isCancelled ()
 
 setLiquid (Liquid $liquid)
 
 setRadius (int $radius)
 
 setTargetBlock (Block $targetBlock)
 

Static Public Member Functions

static hasHandlers ()
 

Protected Attributes

Entity $entity
 
string $eventName = null
 

Detailed Description

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

@phpstan-extends EntityEvent<Living>

Definition at line 37 of file EntityFrostWalkerEvent.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\event\entity\EntityFrostWalkerEvent::__construct ( Living $entity,
private int $radius,
private Liquid $liquid,
private Block $targetBlock )

Definition at line 40 of file EntityFrostWalkerEvent.php.

Member Function Documentation

◆ call()

pocketmine\event\Event::call ( )
inherited

Calls event handlers registered for this event.

Exceptions

RuntimeException if event call recursion reaches the max depth limit

Definition at line 49 of file Event.php.

◆ getEntity()

◆ getEventName()

pocketmine\event\Event::getEventName ( )
finalinherited

Definition at line 40 of file Event.php.

◆ getLiquid()

pocketmine\event\entity\EntityFrostWalkerEvent::getLiquid ( )

Returns the liquid that gets frozen

Definition at line 60 of file EntityFrostWalkerEvent.php.

◆ getRadius()

pocketmine\event\entity\EntityFrostWalkerEvent::getRadius ( )

Definition at line 49 of file EntityFrostWalkerEvent.php.

◆ getTargetBlock()

pocketmine\event\entity\EntityFrostWalkerEvent::getTargetBlock ( )

Returns the block that replaces the liquid

Definition at line 74 of file EntityFrostWalkerEvent.php.

◆ hasHandlers()

static pocketmine\event\Event::hasHandlers ( )
staticinherited

Returns whether the current class context has any registered global handlers. This can be used in hot code paths to avoid unnecessary event object creation.

Usage: SomeEventClass::hasHandlers()

Definition at line 77 of file Event.php.

◆ isCancelled()

pocketmine\event\Cancellable::isCancelled ( )
inherited

Returns whether this instance of the event is currently cancelled.

If it is cancelled, only downstream handlers that declare @handleCancelled will be called with this event.

◆ setLiquid()

pocketmine\event\entity\EntityFrostWalkerEvent::setLiquid ( Liquid $liquid)

Sets the liquid that gets frozen

Definition at line 67 of file EntityFrostWalkerEvent.php.

◆ setRadius()

pocketmine\event\entity\EntityFrostWalkerEvent::setRadius ( int $radius)

Definition at line 53 of file EntityFrostWalkerEvent.php.

◆ setTargetBlock()

pocketmine\event\entity\EntityFrostWalkerEvent::setTargetBlock ( Block $targetBlock)

Sets the block that replaces the liquid

Definition at line 81 of file EntityFrostWalkerEvent.php.

Member Data Documentation

◆ $entity

◆ $eventName

string pocketmine\event\Event::$eventName = null
protectedinherited

Definition at line 38 of file Event.php.


The documentation for this class was generated from the following file: