cleanup block dual bounding box clusterfuck

"bounding box" serves no tangible purpose, only collision boxes do right now.
This commit is contained in:
Dylan K. Taylor
2019-08-15 17:23:55 +01:00
parent d58339b2fd
commit 4898a35613
40 changed files with 202 additions and 157 deletions

View File

@ -93,10 +93,12 @@ This version features substantial changes to the network system, improving coher
- `Block->onEntityCollide()` -> `Block->onEntityInside()`
- The following API methods have changed signatures:
- `Block->onInteract()` now has the signature `onInteract(Item $item, int $face, Vector3 $clickVector, ?Player $player = null) : bool`
- `Block->getCollisionBoxes()` is now final. Classes should override `recalculateCollisionBoxes()`.
- The following API methods have been removed:
- `Block->canPassThrough()`
- `Block->setDamage()`
- `Block::get()`: this was superseded by `BlockFactory::get()` a long time ago
- `Block->getBoundingBox()`
- The following classes have been renamed:
- `BlockIds` -> `BlockLegacyIds`
- `CobblestoneWall` -> `Wall`