◆ __construct()
__construct |
( |
Creeper |
$creeper, |
|
|
Lightning |
$lightning = null , |
|
|
int |
$cause = self::CAUSE_LIGHTNING |
|
) |
| |
CreeperPowerEvent constructor.
- Parameters
-
Creeper | $creeper | |
Lightning | null | $lightning | |
int | $cause | |
48 $this->entity = $creeper;
49 $this->lightning = $lightning;
50 $this->cause = $cause;
◆ getCause()
◆ getLightning()
- Returns
- Lightning
57 return $this->lightning;
◆ $handlerList
◆ CAUSE_LIGHTNING
const CAUSE_LIGHTNING = 2 |
◆ CAUSE_SET_OFF
◆ CAUSE_SET_ON
The documentation for this class was generated from the following file:
- src/pocketmine/event/entity/CreeperPowerEvent.php