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

@ -1548,7 +1548,7 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
$vector = $this->temporalVector->setComponents(0, 0, 0);
foreach($this->getBlocksAround() as $block){
$block->onEntityCollide($this);
$block->onEntityInside($this);
$block->addVelocityToEntity($this, $vector);
}