summaryrefslogtreecommitdiffstats
path: root/source/World.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-20 13:40:34 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-20 13:40:34 +0200
commitd006ea533763c19d0c35877e87c1384bdd65630d (patch)
tree24d45e32142ac5b9553caa47c62e4e71e45bceaf /source/World.cpp
parentPACKET_DESTROY_ENTITY isn't sent for self when the player is kicked (FS #254) (diff)
downloadcuberite-d006ea533763c19d0c35877e87c1384bdd65630d.tar
cuberite-d006ea533763c19d0c35877e87c1384bdd65630d.tar.gz
cuberite-d006ea533763c19d0c35877e87c1384bdd65630d.tar.bz2
cuberite-d006ea533763c19d0c35877e87c1384bdd65630d.tar.lz
cuberite-d006ea533763c19d0c35877e87c1384bdd65630d.tar.xz
cuberite-d006ea533763c19d0c35877e87c1384bdd65630d.tar.zst
cuberite-d006ea533763c19d0c35877e87c1384bdd65630d.zip
Diffstat (limited to 'source/World.cpp')
-rw-r--r--source/World.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/source/World.cpp b/source/World.cpp
index 9b8f3eccb..e6cd10f34 100644
--- a/source/World.cpp
+++ b/source/World.cpp
@@ -1125,6 +1125,15 @@ NIBBLETYPE cWorld::GetBlockSkyLight( int a_X, int a_Y, int a_Z )
+NIBBLETYPE cWorld::GetBlockBlockLight(int a_BlockX, int a_BlockY, int a_BlockZ)
+{
+ return m_ChunkMap->GetBlockBlockLight(a_BlockX, a_BlockY, a_BlockZ);
+}
+
+
+
+
+
void cWorld::GetBlockTypeMeta(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta)
{
m_ChunkMap->GetBlockTypeMeta(a_BlockX, a_BlockY, a_BlockZ, (BLOCKTYPE &)a_BlockType, (NIBBLETYPE &)a_BlockMeta);
@@ -1134,6 +1143,15 @@ void cWorld::GetBlockTypeMeta(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYP
+void cWorld::GetBlockInfo(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE & a_BlockType, NIBBLETYPE & a_Meta, NIBBLETYPE & a_SkyLight, NIBBLETYPE & a_BlockLight)
+{
+ m_ChunkMap->GetBlockInfo(a_BlockX, a_BlockY, a_BlockZ, a_BlockType, a_Meta, a_SkyLight, a_BlockLight);
+}
+
+
+
+
+
bool cWorld::WriteBlockArea(cBlockArea & a_Area, int a_MinBlockX, int a_MinBlockY, int a_MinBlockZ, int a_DataTypes)
{
return m_ChunkMap->WriteBlockArea(a_Area, a_MinBlockX, a_MinBlockY, a_MinBlockZ, a_DataTypes);