Added Block and Item namespaces

This commit is contained in:
Shoghi Cervantes
2014-03-06 17:14:15 +01:00
parent 2e0d9153b3
commit 6f74ef80f9
120 changed files with 1190 additions and 876 deletions

View File

@ -19,12 +19,15 @@
*
*/
class BirchWoodStairsBlock extends StairBlock{
namespace PocketMine\Block;
use PocketMine;
class BirchWoodStairs extends Stair{
public function __construct($meta = 0){
parent::__construct(BIRCH_WOOD_STAIRS, $meta, "Birch Wood Stairs");
}
public function getDrops(Item $item, Player $player){
public function getDrops(Item\Item $item, Player $player){
return array(
array($this->id, 0, 1),
);