Remove Item::hasAnyDamageValue()

This commit is contained in:
Dylan K. Taylor 2022-06-27 13:35:43 +01:00
parent 55cb68e5b5
commit 65ed7d7794
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -441,14 +441,6 @@ class Item implements \JsonSerializable{
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.
*/