PocketMine-MP 5.28.3 git-d5a1007c80fcee27feb2251cf5dcf1ad5a59a85c
|
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 |
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.
pocketmine\event\entity\EntityFrostWalkerEvent::__construct | ( | Living | $entity, |
private int | $radius, | ||
private Liquid | $liquid, | ||
private Block | $targetBlock ) |
Definition at line 40 of file EntityFrostWalkerEvent.php.
|
inherited |
|
inherited |
Reimplemented in pocketmine\event\entity\EntityDeathEvent, pocketmine\event\entity\EntityShootBowEvent, pocketmine\event\entity\ItemDespawnEvent, pocketmine\event\entity\ItemSpawnEvent, pocketmine\event\entity\ProjectileHitEvent, pocketmine\event\entity\ProjectileLaunchEvent, and pocketmine\event\player\PlayerDeathEvent.
Definition at line 43 of file EntityEvent.php.
References pocketmine\event\entity\EntityEvent\$entity.
pocketmine\event\entity\EntityFrostWalkerEvent::getLiquid | ( | ) |
Returns the liquid that gets frozen
Definition at line 60 of file EntityFrostWalkerEvent.php.
pocketmine\event\entity\EntityFrostWalkerEvent::getRadius | ( | ) |
Definition at line 49 of file EntityFrostWalkerEvent.php.
pocketmine\event\entity\EntityFrostWalkerEvent::getTargetBlock | ( | ) |
Returns the block that replaces the liquid
Definition at line 74 of file EntityFrostWalkerEvent.php.
|
staticinherited |
|
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.
pocketmine\event\entity\EntityFrostWalkerEvent::setLiquid | ( | Liquid | $liquid | ) |
Sets the liquid that gets frozen
Definition at line 67 of file EntityFrostWalkerEvent.php.
pocketmine\event\entity\EntityFrostWalkerEvent::setRadius | ( | int | $radius | ) |
Definition at line 53 of file EntityFrostWalkerEvent.php.
pocketmine\event\entity\EntityFrostWalkerEvent::setTargetBlock | ( | Block | $targetBlock | ) |
Sets the block that replaces the liquid
Definition at line 81 of file EntityFrostWalkerEvent.php.
|
protectedinherited |
@phpstan-var TEntity
Definition at line 37 of file EntityEvent.php.
Referenced by pocketmine\event\entity\EntityDamageByBlockEvent\__construct(), pocketmine\event\entity\EntityDamageByChildEntityEvent\__construct(), pocketmine\event\entity\EntityDamageByEntityEvent\__construct(), pocketmine\event\entity\EntityDamageEvent\__construct(), pocketmine\event\entity\EntityDeathEvent\__construct(), pocketmine\event\entity\EntityExplodeEvent\__construct(), pocketmine\event\player\PlayerDeathEvent\__construct(), pocketmine\event\entity\EntityDeathEvent\getEntity(), pocketmine\event\entity\EntityEvent\getEntity(), pocketmine\event\entity\EntityShootBowEvent\getEntity(), pocketmine\event\entity\ItemDespawnEvent\getEntity(), pocketmine\event\entity\ItemSpawnEvent\getEntity(), pocketmine\event\entity\ProjectileHitEvent\getEntity(), and pocketmine\event\entity\ProjectileLaunchEvent\getEntity().
|
protectedinherited |