used namespacer

This commit is contained in:
Shoghi Cervantes
2014-03-06 15:15:50 +01:00
parent 64a9650765
commit 2e0d9153b3
30 changed files with 155 additions and 107 deletions

View File

@@ -21,10 +21,11 @@
namespace PocketMine\Item;
use PocketMine;
use PocketMine\Block\Block as Block;
class Sugarcane extends Item{
public function __construct($meta = 0, $count = 1){
$this->block = Block\Block::get(SUGARCANE_BLOCK);
$this->block = Block::get(SUGARCANE_BLOCK);
parent::__construct(SUGARCANE, 0, $count, "Sugar Cane");
}
}