mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Use SplFixedArrays in inventory, added more typehints and cleaned up some duplicated code
This commit is contained in:
@ -48,6 +48,7 @@ class FurnaceInventory extends ContainerInventory{
|
||||
}
|
||||
|
||||
/**
|
||||
* This override is here for documentation and code completion purposes only.
|
||||
* @return Furnace
|
||||
*/
|
||||
public function getHolder(){
|
||||
@ -102,8 +103,8 @@ class FurnaceInventory extends ContainerInventory{
|
||||
return $this->setItem(0, $item);
|
||||
}
|
||||
|
||||
public function onSlotChange($index, $before){
|
||||
parent::onSlotChange($index, $before);
|
||||
public function onSlotChange(int $index, Item $before, bool $send){
|
||||
parent::onSlotChange($index, $before, $send);
|
||||
|
||||
$this->getHolder()->scheduleUpdate();
|
||||
}
|
||||
|
Reference in New Issue
Block a user