Definition at line 30 of file ProjectileHitBlockEvent.php.
◆ __construct()
◆ 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.
◆ getBlockHit()
pocketmine\event\entity\ProjectileHitBlockEvent::getBlockHit |
( |
| ) |
|
Returns the Block struck by the projectile. Hint: to get the block face hit, look at the RayTraceResult.
Definition at line 43 of file ProjectileHitBlockEvent.php.
◆ getEntity()
pocketmine\event\entity\ProjectileHitEvent::getEntity |
( |
| ) |
|
|
inherited |
◆ getEventName()
pocketmine\event\Event::getEventName |
( |
| ) |
|
|
finalinherited |
◆ getRayTraceResult()
pocketmine\event\entity\ProjectileHitEvent::getRayTraceResult |
( |
| ) |
|
|
inherited |
◆ 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.
◆ $entity
Entity pocketmine\event\entity\EntityEvent::$entity |
|
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().
◆ $eventName
string pocketmine\event\Event::$eventName = null |
|
protectedinherited |
The documentation for this class was generated from the following file: