Enchantment: added @see tags to @deprecated methods

This commit is contained in:
Dylan K. Taylor 2023-08-23 16:53:09 +01:00
parent f4e1c31dcf
commit 923f7561fb
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -83,6 +83,7 @@ class Enchantment{
* Returns a bitset indicating what item types can have this item applied from an enchanting table.
*
* @deprecated
* @see AvailableEnchantmentRegistry::getPrimaryItemTags()
*/
public function getPrimaryItemFlags() : int{
return $this->primaryItemFlags;
@ -93,6 +94,7 @@ class Enchantment{
* an anvil.
*
* @deprecated
* @see AvailableEnchantmentRegistry::getSecondaryItemTags()
*/
public function getSecondaryItemFlags() : int{
return $this->secondaryItemFlags;
@ -102,6 +104,7 @@ class Enchantment{
* Returns whether this enchantment can apply to the item type from an enchanting table.
*
* @deprecated
* @see AvailableEnchantmentRegistry
*/
public function hasPrimaryItemType(int $flag) : bool{
return ($this->primaryItemFlags & $flag) !== 0;
@ -111,6 +114,7 @@ class Enchantment{
* Returns whether this enchantment can apply to the item type from an anvil, if it is not a primary item.
*
* @deprecated
* @see AvailableEnchantmentRegistry
*/
public function hasSecondaryItemType(int $flag) : bool{
return ($this->secondaryItemFlags & $flag) !== 0;