Block: add documentation for getFrictionFactor()

has no one ever questioned the fact that a higher _friction_ factor _reduces_ the block's friction???
This commit is contained in:
Dylan K. Taylor 2022-09-24 17:05:38 +01:00
parent 140a809c40
commit 77a18d0aea
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -282,6 +282,12 @@ class Block{
return false;
}
/**
* Returns a multiplier applied to the velocity of entities moving on top of this block. A higher value will make
* the block more slippery (like ice).
*
* @return float 0.0-1.0
*/
public function getFrictionFactor() : float{
return 0.6;
}