Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Public Attributes | List of all members
SetChunkData Struct Reference

Contains the data for a loaded / generated chunk, ready to be set into a cWorld. More...

#include <SetChunkData.h>

Collaboration diagram for SetChunkData:
Collaboration graph
[legend]

Public Member Functions

 SetChunkData (const cChunkCoords a_Chunk)
 Initialise the structure with chunk coordinates. More...
 
void UpdateHeightMap ()
 Recalculates the HeightMap based on BlockData contents. More...
 

Public Attributes

cChunkDef::BiomeMap BiomeMap
 
ChunkBlockData BlockData
 
cBlockEntities BlockEntities
 
cChunkCoords Chunk
 
cEntityList Entities
 
cChunkDef::HeightMap HeightMap
 
bool IsLightValid
 
ChunkLightData LightData
 

Detailed Description

Contains the data for a loaded / generated chunk, ready to be set into a cWorld.

Definition at line 11 of file SetChunkData.h.

Constructor & Destructor Documentation

◆ SetChunkData()

SetChunkData::SetChunkData ( const cChunkCoords  a_Chunk)
inline

Initialise the structure with chunk coordinates.

The caller is responsible for initialising the remaining members.

Definition at line 15 of file SetChunkData.h.

Member Function Documentation

◆ UpdateHeightMap()

void SetChunkData::UpdateHeightMap ( )

Recalculates the HeightMap based on BlockData contents.

Definition at line 10 of file SetChunkData.cpp.

Member Data Documentation

◆ BiomeMap

cChunkDef::BiomeMap SetChunkData::BiomeMap

Definition at line 25 of file SetChunkData.h.

◆ BlockData

ChunkBlockData SetChunkData::BlockData

Definition at line 22 of file SetChunkData.h.

◆ BlockEntities

cBlockEntities SetChunkData::BlockEntities

Definition at line 29 of file SetChunkData.h.

◆ Chunk

cChunkCoords SetChunkData::Chunk

Definition at line 20 of file SetChunkData.h.

◆ Entities

cEntityList SetChunkData::Entities

Definition at line 28 of file SetChunkData.h.

◆ HeightMap

cChunkDef::HeightMap SetChunkData::HeightMap

Definition at line 26 of file SetChunkData.h.

◆ IsLightValid

bool SetChunkData::IsLightValid

Definition at line 31 of file SetChunkData.h.

◆ LightData

ChunkLightData SetChunkData::LightData

Definition at line 23 of file SetChunkData.h.


The documentation for this struct was generated from the following files: