QcServerFallingBlocks Class
Falling blocks in the server tick (decisions E-055, E-288): a block that loses its hold becomes a falling-block entity (QcFallingBlockManager, a kind of the entity register) or, when too many fall, drops straight to its resting cell; one that comes to rest becomes its block again (concrete powder hardens in water) or breaks into items when the cell is taken or a body is in it. More...
| Header: | #include <server/blocks/QcServerFallingBlocks.h> |
Public Functions
| void | retryWaiting() |
| void | start(QcBlockPos pos, QcBlockId block) |
| void | tick() |
Detailed Description
A block with landing damage (an anvil, decision E-866) hurts the bodies in its cell and may wear on landing.
Member Function Documentation
void QcServerFallingBlocks::retryWaiting()
Queues the waiting falls again once there is room for falling blocks.
void QcServerFallingBlocks::start(QcBlockPos pos, QcBlockId block)
Lets block at pos fall: as an entity, or straight to its resting cell when too many fall. A block that would fall into the void or an unloaded chunk while too many fall waits.
void QcServerFallingBlocks::tick()
Moves the falling blocks and puts those that came to rest.