Added Item namespace

This commit is contained in:
Shoghi Cervantes
2014-03-06 15:11:46 +01:00
parent e3f1db0f45
commit 419f246e68
78 changed files with 1057 additions and 744 deletions

View File

@@ -19,9 +19,12 @@
*
*/
class SugarcaneItem extends Item{
namespace PocketMine\Item;
use PocketMine;
class Sugarcane extends Item{
public function __construct($meta = 0, $count = 1){
$this->block = BlockAPI::get(SUGARCANE_BLOCK);
$this->block = Block\Block::get(SUGARCANE_BLOCK);
parent::__construct(SUGARCANE, 0, $count, "Sugar Cane");
}
}