Added "getter" for in air ticks.

This commit is contained in:
legoboy0215 2016-02-01 07:25:40 +08:00
parent e5937926cd
commit d5d2f46db2

View File

@ -608,6 +608,10 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
public function isSleeping(){
return $this->sleeping !== null;
}
public function getInAirTicks(){
return $this->inAirTicks;
}
protected function switchLevel(Level $targetLevel){
$oldLevel = $this->level;