QcSpawnPoint Class
Where players appear in the world, when they join for the first time and when they respawn: on the surface of the generator's spawn column (or the configured one, QcServerConfig::spawnColumn) as the world stores it; when that is no natural ground (a tree, a building, water), on the nearest natural ground around it. More...
| Header: | #include <server/core/QcSpawnPoint.h> |
Public Types
Public Functions
Detailed Description
A column without any block gets one under the generator's spawn height, so a respawn never drops into the void (decision E-288).
Member Type Documentation
[alias] QcSpawnPoint::Clients
The clients of the server.
Member Function Documentation
QcBlockPos QcSpawnPoint::column()
Returns the spawn column (x and z; y is the generator's spawn height): the configured one or the generator's. Cheap after the first call.
QcVec3 QcSpawnPoint::position()
Returns the feet of a player appearing now; may generate chunks and place the ground block.