mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Block: added a bunch of state manipulation APIs
This commit is contained in:
@ -84,6 +84,22 @@ abstract class Liquid extends Transparent{
|
||||
return 0b1111;
|
||||
}
|
||||
|
||||
public function isFalling() : bool{ return $this->falling; }
|
||||
|
||||
/** @return $this */
|
||||
public function setFalling(bool $falling) : self{
|
||||
$this->falling = $falling;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getDecay() : int{ return $this->decay; }
|
||||
|
||||
/** @return $this */
|
||||
public function setDecay(int $decay) : self{
|
||||
$this->decay = $decay;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function hasEntityCollision() : bool{
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user