mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Block: Rename getItem() to asItem()
this has clearer meaning and is less likely to collide with other things.
This commit is contained in:
@ -95,7 +95,7 @@ class Skull extends Flowable{
|
||||
return parent::place($item, $blockReplace, $blockClicked, $face, $clickVector, $player);
|
||||
}
|
||||
|
||||
public function getItem() : Item{
|
||||
public function asItem() : Item{
|
||||
return ItemFactory::get(Item::SKULL, $this->type);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user