Block: rename onEntityCollide() -> onEntityInside()

this better describes what the hook is for.
This commit is contained in:
Dylan K. Taylor
2019-01-20 18:09:47 +00:00
parent d586a18a16
commit 425ad6101f
11 changed files with 14 additions and 11 deletions

View File

@ -705,9 +705,12 @@ class Block extends Position implements BlockIds, Metadatable{
}
/**
* Called when an entity's bounding box clips inside this block's cell. Note that the entity may not be intersecting
* with the collision box or bounding box.
*
* @param Entity $entity
*/
public function onEntityCollide(Entity $entity) : void{
public function onEntityInside(Entity $entity) : void{
}