summaryrefslogtreecommitdiffstats
path: root/source/Generating/ChunkDesc.h
diff options
context:
space:
mode:
authorDaniel O'Brien <marmot.daniel@gmail.com>2013-11-15 08:25:20 +0100
committerDaniel O'Brien <marmot.daniel@gmail.com>2013-11-15 08:25:20 +0100
commitaf17faac45f8ecbfc3af64231b65d66872af3301 (patch)
treea8864aef4d4a9036249170602164927b9ca99d58 /source/Generating/ChunkDesc.h
parentcProtocol add SendExperience() and debugging (diff)
parentMerge pull request #349 from SamJBarney/master (diff)
downloadcuberite-af17faac45f8ecbfc3af64231b65d66872af3301.tar
cuberite-af17faac45f8ecbfc3af64231b65d66872af3301.tar.gz
cuberite-af17faac45f8ecbfc3af64231b65d66872af3301.tar.bz2
cuberite-af17faac45f8ecbfc3af64231b65d66872af3301.tar.lz
cuberite-af17faac45f8ecbfc3af64231b65d66872af3301.tar.xz
cuberite-af17faac45f8ecbfc3af64231b65d66872af3301.tar.zst
cuberite-af17faac45f8ecbfc3af64231b65d66872af3301.zip
Diffstat (limited to 'source/Generating/ChunkDesc.h')
-rw-r--r--source/Generating/ChunkDesc.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/Generating/ChunkDesc.h b/source/Generating/ChunkDesc.h
index 067d8494a..e130c463f 100644
--- a/source/Generating/ChunkDesc.h
+++ b/source/Generating/ChunkDesc.h
@@ -170,9 +170,12 @@ public:
);
}
- // tolua_end
+ /// Returns the block entity at the specified coords.
+ /// If there is no block entity at those coords, tries to create one, based on the block type
+ /// If the blocktype doesn't support a block entity, returns NULL.
+ cBlockEntity * GetBlockEntity(int a_RelX, int a_RelY, int a_RelZ);
- void AddBlockEntity(cBlockEntity * a_BlockEntity);
+ // tolua_end
// Accessors used by cChunkGenerator::Generator descendants:
inline cChunkDef::BiomeMap & GetBiomeMap (void) { return m_BiomeMap; }