Cuberite
A lightweight, fast and extensible game server for Minecraft
SetChunkData.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "ChunkData.h"
5 
6 
7 
8 
9 
12 {
15  SetChunkData(const cChunkCoords a_Chunk) :
16  Chunk(a_Chunk)
17  {
18  }
19 
21 
24 
27 
30 
32 
33 
35  void UpdateHeightMap();
36 };
std::vector< OwnedEntity > cEntityList
Definition: ChunkDef.h:33
Wraps the chunk coords into a single structure.
Definition: ChunkDef.h:57
HEIGHTTYPE HeightMap[Width *Width]
The type used for any heightmap operations and storage; idx = x + Width * z; Height points to the hig...
Definition: ChunkDef.h:132
EMCSBiome BiomeMap[Width *Width]
The type used for any biomemap operations and storage inside Cuberite, using Cuberite biomes (need no...
Definition: ChunkDef.h:137
Contains the data for a loaded / generated chunk, ready to be set into a cWorld.
Definition: SetChunkData.h:12
cChunkCoords Chunk
Definition: SetChunkData.h:20
SetChunkData(const cChunkCoords a_Chunk)
Initialise the structure with chunk coordinates.
Definition: SetChunkData.h:15
ChunkBlockData BlockData
Definition: SetChunkData.h:22
void UpdateHeightMap()
Recalculates the HeightMap based on BlockData contents.
cChunkDef::BiomeMap BiomeMap
Definition: SetChunkData.h:25
bool IsLightValid
Definition: SetChunkData.h:31
cEntityList Entities
Definition: SetChunkData.h:28
ChunkLightData LightData
Definition: SetChunkData.h:23
cBlockEntities BlockEntities
Definition: SetChunkData.h:29
cChunkDef::HeightMap HeightMap
Definition: SetChunkData.h:26
std::unordered_map< size_t, OwnedBlockEntity > cBlockEntities
Definition: BlockEntity.h:17