mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 01:16:15 +00:00
remove World->isFullBlock(), add Block->isFullCube(), clean up some BB mess
This commit is contained in:
@ -83,6 +83,7 @@ This version features substantial changes to the network system, improving coher
|
||||
- `Block->asItem()`: returns an itemstack corresponding to the block
|
||||
- `Block->isSameState()`: returns whether the block is the same as the parameter, including state information
|
||||
- `Block->isSameType()`: returns whether the block is the same as the parameter, without state information
|
||||
- `Block->isFullCube()`
|
||||
- The following hooks have been added:
|
||||
- `Block->onAttack()`: called when a player in survival left-clicks the block to try to start breaking it
|
||||
- `Block->onPostPlace()`: called directly after placement in the world, handles things like rail connections and chest pairing
|
||||
@ -673,7 +674,7 @@ This version features substantial changes to the network system, improving coher
|
||||
- `World->unregisterChunkListener()`
|
||||
- The following API methods have been removed:
|
||||
- `ChunkLoader->getLoaderId()` (now object ID is used)
|
||||
|
||||
- `World->isFullBlock()`
|
||||
- The following API methods have changed signatures:
|
||||
- `World->addParticle()` now has the signature `addParticle(Vector3 $pos, Particle $particle, ?Player[] $players = null) : void`
|
||||
- `World->addSound()` now has the signature `addSound(?Vector3 $pos, Sound $sound, ?Player[] $players = null) : void`
|
||||
|
Reference in New Issue
Block a user