diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-06-06 22:18:50 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-06-06 22:18:50 +0200 |
commit | 1cca9b13b3d320ff767cfc552413265b2ef6e0d6 (patch) | |
tree | c1227f3f4141dbf2f85767a65cb9d2102a9d4010 /source/cBlockToPickup.h | |
parent | BlockIDs, ItemIDs and Metas updated, courtesy of Taugeshtu (diff) | |
download | cuberite-1cca9b13b3d320ff767cfc552413265b2ef6e0d6.tar cuberite-1cca9b13b3d320ff767cfc552413265b2ef6e0d6.tar.gz cuberite-1cca9b13b3d320ff767cfc552413265b2ef6e0d6.tar.bz2 cuberite-1cca9b13b3d320ff767cfc552413265b2ef6e0d6.tar.lz cuberite-1cca9b13b3d320ff767cfc552413265b2ef6e0d6.tar.xz cuberite-1cca9b13b3d320ff767cfc552413265b2ef6e0d6.tar.zst cuberite-1cca9b13b3d320ff767cfc552413265b2ef6e0d6.zip |
Diffstat (limited to 'source/cBlockToPickup.h')
-rw-r--r-- | source/cBlockToPickup.h | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/source/cBlockToPickup.h b/source/cBlockToPickup.h index a59d64318..315d75b33 100644 --- a/source/cBlockToPickup.h +++ b/source/cBlockToPickup.h @@ -1,14 +1,28 @@ #pragma once
#ifndef _WIN32
-#include "BlockID.h"
+ #include "BlockID.h"
#else
-enum ENUM_ITEM_ID;
+ enum ENUM_ITEM_ID;
#endif
-class cBlockToPickup
-{
+#include "cItem.h"
+
+
+
+
+
+class cBlockToPickup // tolua_export
+{ // tolua_export
public:
- static ENUM_ITEM_ID ToPickup( unsigned char a_BlockID, ENUM_ITEM_ID a_UsedItemID );
- static char PickupCount(unsigned char a_BlockID);
-};
+ /// For a given block and tool, returns the list of drops generated
+ static void ToPickup(BLOCKTYPE a_BlockID, NIBBLETYPE a_BlockMeta, ENUM_ITEM_ID a_UsedItemID, cItems & a_Drops); // tolua_export
+
+ /// Returns true if the tool used for the block is the right one for the job. cClientHandle uses this to determine whether to decrease tool durability twice as much
+ static bool IsRightTool(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, ENUM_ITEM_ID a_UsedTool); // tolua_export
+
+}; // tolua_export
+
+
+
+
|