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

21 lines
336 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_ItemID)
: cItemHandler(a_ItemID)
{
}
2012-07-16 19:20:37 +00:00
virtual bool CanHarvestBlock(BLOCKTYPE a_BlockID) override
2012-07-15 20:36:34 +00:00
{
return a_BlockID == E_BLOCK_COBWEB;
}
};