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

31 lines
346 B
C++
Raw Normal View History

2013-07-29 12:13:03 +01:00
#pragma once
#include "ItemHandler.h"
#include "../World.h"
2013-08-19 11:39:13 +02:00
#include "../Entities/Player.h"
2013-07-29 12:13:03 +01:00
2013-08-19 11:39:13 +02:00
class cItemSwordHandler :
public cItemHandler
2013-07-29 12:13:03 +01:00
{
public:
cItemSwordHandler(int a_ItemType)
: cItemHandler(a_ItemType)
{
}
virtual bool CanHarvestBlock(BLOCKTYPE a_BlockType) override
{
return (a_BlockType == E_BLOCK_COBWEB);
}
2013-08-19 11:39:13 +02:00
} ;