mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
cleanup block dual bounding box clusterfuck
"bounding box" serves no tangible purpose, only collision boxes do right now.
This commit is contained in:
@ -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`
|
||||
|
Reference in New Issue
Block a user