Changed Block->getDrops() to return Item[]

This commit is contained in:
Dylan K. Taylor
2017-08-18 11:21:33 +01:00
parent c8ed2406d7
commit d8f0dd6db8
94 changed files with 314 additions and 373 deletions

View File

@ -54,9 +54,9 @@ class DoubleWoodenSlab extends Solid{
return "Double " . ($names[$this->meta & 0x07] ?? "") . " Wooden Slab";
}
public function getDrops(Item $item){
public function getDrops(Item $item) : array{
return [
[Item::WOODEN_SLAB, $this->meta & 0x07, 2],
Item::get(Item::WOODEN_SLAB, $this->getDamage() & 0x07, 2)
];
}