Files
cuberite-2a/source/Items/ItemSword.h
T

21 lines
344 B
C++
Raw Normal View History

2012-07-15 20:36:34 +00:00
#pragma once
#include "ItemHandler.h"
#include "../World.h"
#include "../Player.h"
2012-07-15 20:36:34 +00:00
class cItemSwordHandler : public cItemHandler
{
public:
cItemSwordHandler(int a_ItemType)
: cItemHandler(a_ItemType)
2012-07-15 20:36:34 +00:00
{
}
virtual bool CanHarvestBlock(BLOCKTYPE a_BlockType) override
2012-07-15 20:36:34 +00:00
{
return a_BlockType == E_BLOCK_COBWEB;
2012-07-15 20:36:34 +00:00
}
};