Added conversion between Items <==> Blocks

This commit is contained in:
Shoghi Cervantes Pueyo 2013-02-04 16:26:47 +01:00
parent d5aa898ffe
commit 213cda27aa
6 changed files with 47 additions and 8 deletions

View file

@ -30,4 +30,10 @@ class SugarcaneBlock extends TransparentBlock{
parent::__construct(SUGARCANE_BLOCK, 0, "Sugarcane");
}
public function getDrops(Item $item, Player $player){
return array(
array(SUGARCANE, 0, 1),
);
}
}