PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
|
Public Member Functions | |
__construct (protected Human $human, private float $amount, private int $cause) | |
call () | |
getAmount () | |
getCause () | |
getEntity () | |
getEventName () | |
getPlayer () | |
isCancelled () | |
setAmount (float $amount) | |
Static Public Member Functions | |
static | hasHandlers () |
Public Attributes | |
const | CAUSE_ATTACK = 1 |
const | CAUSE_CUSTOM = 11 |
const | CAUSE_DAMAGE = 2 |
const | CAUSE_HEALTH_REGEN = 4 |
const | CAUSE_JUMPING = 9 |
const | CAUSE_MINING = 3 |
const | CAUSE_POTION = 5 |
const | CAUSE_SPRINT_JUMPING = 10 |
const | CAUSE_SPRINTING = 7 |
const | CAUSE_SWIMMING = 8 |
const | CAUSE_WALKING = 6 |
Protected Attributes | |
Entity | $entity |
string | $eventName = null |
@phpstan-extends EntityEvent<Human>
Definition at line 34 of file PlayerExhaustEvent.php.
pocketmine\event\player\PlayerExhaustEvent::__construct | ( | protected Human | $human, |
private float | $amount, | ||
private int | $cause ) |
Definition at line 49 of file PlayerExhaustEvent.php.
|
inherited |
pocketmine\event\player\PlayerExhaustEvent::getAmount | ( | ) |
Definition at line 64 of file PlayerExhaustEvent.php.
pocketmine\event\player\PlayerExhaustEvent::getCause | ( | ) |
Returns an int cause of the exhaustion - one of the constants at the top of this class.
Definition at line 75 of file PlayerExhaustEvent.php.
|
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\player\PlayerExhaustEvent::getPlayer | ( | ) |
Definition at line 60 of file PlayerExhaustEvent.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\player\PlayerExhaustEvent::setAmount | ( | float | $amount | ) |
Definition at line 68 of file PlayerExhaustEvent.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 |
const pocketmine\event\player\PlayerExhaustEvent::CAUSE_ATTACK = 1 |
Definition at line 37 of file PlayerExhaustEvent.php.
const pocketmine\event\player\PlayerExhaustEvent::CAUSE_CUSTOM = 11 |
Definition at line 47 of file PlayerExhaustEvent.php.
const pocketmine\event\player\PlayerExhaustEvent::CAUSE_DAMAGE = 2 |
Definition at line 38 of file PlayerExhaustEvent.php.
const pocketmine\event\player\PlayerExhaustEvent::CAUSE_HEALTH_REGEN = 4 |
Definition at line 40 of file PlayerExhaustEvent.php.
const pocketmine\event\player\PlayerExhaustEvent::CAUSE_JUMPING = 9 |
Definition at line 45 of file PlayerExhaustEvent.php.
const pocketmine\event\player\PlayerExhaustEvent::CAUSE_MINING = 3 |
Definition at line 39 of file PlayerExhaustEvent.php.
const pocketmine\event\player\PlayerExhaustEvent::CAUSE_POTION = 5 |
Definition at line 41 of file PlayerExhaustEvent.php.
const pocketmine\event\player\PlayerExhaustEvent::CAUSE_SPRINT_JUMPING = 10 |
Definition at line 46 of file PlayerExhaustEvent.php.
const pocketmine\event\player\PlayerExhaustEvent::CAUSE_SPRINTING = 7 |
Definition at line 43 of file PlayerExhaustEvent.php.
const pocketmine\event\player\PlayerExhaustEvent::CAUSE_SWIMMING = 8 |
Definition at line 44 of file PlayerExhaustEvent.php.
const pocketmine\event\player\PlayerExhaustEvent::CAUSE_WALKING = 6 |
Definition at line 42 of file PlayerExhaustEvent.php.