mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-17 03:08:58 +00:00
Added "getter" for in air ticks.
This commit is contained in:
parent
e5937926cd
commit
d5d2f46db2
@ -609,6 +609,10 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
|||||||
return $this->sleeping !== null;
|
return $this->sleeping !== null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getInAirTicks(){
|
||||||
|
return $this->inAirTicks;
|
||||||
|
}
|
||||||
|
|
||||||
protected function switchLevel(Level $targetLevel){
|
protected function switchLevel(Level $targetLevel){
|
||||||
$oldLevel = $this->level;
|
$oldLevel = $this->level;
|
||||||
if(parent::switchLevel($targetLevel)){
|
if(parent::switchLevel($targetLevel)){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user