remove World->isFullBlock(), add Block->isFullCube(), clean up some BB mess

This commit is contained in:
Dylan K. Taylor
2019-08-15 16:22:54 +01:00
parent e29ac514d7
commit 73b2669712
4 changed files with 16 additions and 20 deletions

View File

@ -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`