mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-16 08:25:29 +00:00
Remove Item::hasAnyDamageValue()
This commit is contained in:
parent
55cb68e5b5
commit
65ed7d7794
@ -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.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user