mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 00:07:30 +00:00
Entity: add getters and setters for fallDistance
This commit is contained in:
parent
df3b112877
commit
956780c6a6
@ -1018,6 +1018,12 @@ abstract class Entity{
|
||||
);
|
||||
}
|
||||
|
||||
public function getFallDistance() : float{ return $this->fallDistance; }
|
||||
|
||||
public function setFallDistance(float $fallDistance) : void{
|
||||
$this->fallDistance = $fallDistance;
|
||||
}
|
||||
|
||||
public function resetFallDistance() : void{
|
||||
$this->fallDistance = 0.0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user