diff options
author | Mattes D <github@xoft.cz> | 2015-04-30 10:39:15 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-04-30 10:39:15 +0200 |
commit | 4bf3b874e396bd98ccb80b412d7095a4e12b1576 (patch) | |
tree | a8f5e48c198a99495bf0dc7390d84ed824c0ec12 /src/Bindings/LuaState.h | |
parent | Clay blocks are handled with the OreHandler (diff) | |
parent | APIDump: Added documentation for cBlockArea:GetNonAirCropRelCoords. (diff) | |
download | cuberite-4bf3b874e396bd98ccb80b412d7095a4e12b1576.tar cuberite-4bf3b874e396bd98ccb80b412d7095a4e12b1576.tar.gz cuberite-4bf3b874e396bd98ccb80b412d7095a4e12b1576.tar.bz2 cuberite-4bf3b874e396bd98ccb80b412d7095a4e12b1576.tar.lz cuberite-4bf3b874e396bd98ccb80b412d7095a4e12b1576.tar.xz cuberite-4bf3b874e396bd98ccb80b412d7095a4e12b1576.tar.zst cuberite-4bf3b874e396bd98ccb80b412d7095a4e12b1576.zip |
Diffstat (limited to 'src/Bindings/LuaState.h')
-rw-r--r-- | src/Bindings/LuaState.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Bindings/LuaState.h b/src/Bindings/LuaState.h index a6e121eb7..6bedbf5ec 100644 --- a/src/Bindings/LuaState.h +++ b/src/Bindings/LuaState.h @@ -37,6 +37,7 @@ extern "C" +class cBlockArea; class cBlockEntity; class cBoundingBox; class cChunkDesc; @@ -68,6 +69,7 @@ struct HTTPRequest; struct HTTPTemplateRequest; struct TakeDamageInfo; +typedef cBlockArea * pBlockArea; typedef cBoundingBox * pBoundingBox; typedef cMapManager * pMapManager; typedef cPluginManager * pPluginManager; @@ -244,11 +246,13 @@ public: // GetStackValue() retrieves the value at a_StackPos, if it is a valid type. If not, a_Value is unchanged. // Enum values are clamped to their allowed range. void GetStackValue(int a_StackPos, AString & a_Value); + void GetStackValue(int a_StackPos, BLOCKTYPE & a_Value); void GetStackValue(int a_StackPos, bool & a_Value); void GetStackValue(int a_StackPos, cRef & a_Ref); void GetStackValue(int a_StackPos, double & a_Value); void GetStackValue(int a_StackPos, eWeather & a_Value); void GetStackValue(int a_StackPos, int & a_Value); + void GetStackValue(int a_StackPos, pBlockArea & a_Value); void GetStackValue(int a_StackPos, pBoundingBox & a_Value); void GetStackValue(int a_StackPos, pMapManager & a_Value); void GetStackValue(int a_StackPos, pPluginManager & a_Value); |