Block: Rename getItem() to asItem()

this has clearer meaning and is less likely to collide with other things.
This commit is contained in:
Dylan K. Taylor
2019-02-24 10:23:40 +00:00
parent ff35736bf9
commit 0bd1c1529e
7 changed files with 10 additions and 10 deletions

View File

@ -82,7 +82,7 @@ class NetherWartPlant extends Flowable{
public function getDropsForCompatibleTool(Item $item) : array{
return [
$this->getItem()->setCount($this->age === 3 ? mt_rand(2, 4) : 1)
$this->asItem()->setCount($this->age === 3 ? mt_rand(2, 4) : 1)
];
}