Added a deprecation notice to Entity->getBlocksAround()

This commit is contained in:
Dylan K. Taylor 2019-08-11 19:32:21 +01:00
parent 53dc6e2050
commit 4d0e8741fe

View File

@ -1782,6 +1782,9 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
}
/**
* @deprecated WARNING: Despite what its name implies, this function DOES NOT return all the blocks around the entity.
* Instead, it returns blocks which have reactions for an entity intersecting with them.
*
* @return Block[]
*/
public function getBlocksAround() : array{