mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Remove deprecated things
This commit is contained in:
@ -47,18 +47,6 @@ class CraftItemEvent extends Event implements Cancellable{
|
||||
return $this->transaction;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated This returns a one-dimensional array of ingredients and does not account for the positioning of
|
||||
* items in the crafting grid. Prefer getting the input map from the transaction instead.
|
||||
*
|
||||
* @return Item[]
|
||||
*/
|
||||
public function getInput() : array{
|
||||
return array_map(function(Item $item) : Item{
|
||||
return clone $item;
|
||||
}, array_merge(...$this->transaction->getInputMap()));
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Recipe
|
||||
*/
|
||||
|
Reference in New Issue
Block a user