mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 17:06:16 +00:00
Remove Item::hasAnyDamageValue()
This commit is contained in:
@ -441,14 +441,6 @@ class Item implements \JsonSerializable{
|
|||||||
return $this->identifier->getMeta();
|
return $this->identifier->getMeta();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns whether this item can match any item with an equivalent ID with any meta value.
|
|
||||||
* Used in crafting recipes which accept multiple variants of the same item, for example crafting tables recipes.
|
|
||||||
*/
|
|
||||||
public function hasAnyDamageValue() : bool{
|
|
||||||
return $this->identifier->getMeta() === -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the highest amount of this item which will fit into one inventory slot.
|
* Returns the highest amount of this item which will fit into one inventory slot.
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user