summaryrefslogtreecommitdiffstats
path: root/source/items/ItemSeeds.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-29 14:07:22 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-29 14:07:22 +0200
commit9dc0e3c2335fa6aacd0974b161bd96772639bf52 (patch)
tree28381c0f45393be618e31c8475a049520128cb71 /source/items/ItemSeeds.h
parentFixed warnings in md5 (diff)
downloadcuberite-9dc0e3c2335fa6aacd0974b161bd96772639bf52.tar
cuberite-9dc0e3c2335fa6aacd0974b161bd96772639bf52.tar.gz
cuberite-9dc0e3c2335fa6aacd0974b161bd96772639bf52.tar.bz2
cuberite-9dc0e3c2335fa6aacd0974b161bd96772639bf52.tar.lz
cuberite-9dc0e3c2335fa6aacd0974b161bd96772639bf52.tar.xz
cuberite-9dc0e3c2335fa6aacd0974b161bd96772639bf52.tar.zst
cuberite-9dc0e3c2335fa6aacd0974b161bd96772639bf52.zip
Diffstat (limited to 'source/items/ItemSeeds.h')
-rw-r--r--source/items/ItemSeeds.h28
1 files changed, 17 insertions, 11 deletions
diff --git a/source/items/ItemSeeds.h b/source/items/ItemSeeds.h
index 1d7f93613..07cf0e5de 100644
--- a/source/items/ItemSeeds.h
+++ b/source/items/ItemSeeds.h
@@ -1,9 +1,15 @@
+
#pragma once
#include "Item.h"
#include "../cWorld.h"
-class cItemSeedsHandler : public cItemHandler
+
+
+
+
+class cItemSeedsHandler :
+ public cItemHandler
{
public:
cItemSeedsHandler(int a_ItemID)
@@ -21,18 +27,14 @@ public:
{
switch(m_ItemID)
{
- case E_ITEM_SEEDS:
- return E_BLOCK_CROPS;
- case E_ITEM_MELON_SEEDS:
- E_BLOCK_MELON_STEM;
- case E_ITEM_PUMPKIN_SEEDS:
- E_BLOCK_PUMPKIN_STEM;
- default:
- return E_BLOCK_AIR;
+ case E_ITEM_SEEDS: return E_BLOCK_CROPS;
+ case E_ITEM_MELON_SEEDS: return E_BLOCK_MELON_STEM;
+ case E_ITEM_PUMPKIN_SEEDS: return E_BLOCK_PUMPKIN_STEM;
+ default: return E_BLOCK_AIR;
}
}
- virtual NIBBLETYPE GetBlockMeta(NIBBLETYPE a_ItemMeta) override
+ virtual NIBBLETYPE GetBlockMeta(short a_ItemDamage) override
{
return 0; //Not grown yet
}
@@ -50,4 +52,8 @@ public:
return cItemHandler::PlaceBlock(a_World, a_Player, a_Item, a_X, a_Y, a_Z, a_Dir);
}
-}; \ No newline at end of file
+} ;
+
+
+
+