◆ __construct()
__construct |
( |
Entity |
$combustee, |
|
|
|
$duration, |
|
|
|
$ProtectLevel = 0 |
|
) |
| |
- Parameters
-
Entity | $combustee | |
int | $duration | |
int | $ProtectLevel | |
39 $this->entity = $combustee;
◆ getDuration()
- Returns
- float|int
48 if($this->ProtectLevel !== 0){
49 return round($this->duration * (1 - 0.15 * $this->ProtectLevel));
◆ setDuration()
◆ setProtectLevel()
setProtectLevel |
( |
|
$ProtectLevel | ) |
|
◆ $duration
◆ $handlerList
◆ $ProtectLevel
The documentation for this class was generated from the following file:
- src/pocketmine/event/entity/EntityCombustEvent.php