mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-01 07:39:57 +00:00
Enchantment: added @see tags to @deprecated methods
This commit is contained in:
parent
f4e1c31dcf
commit
923f7561fb
@ -83,6 +83,7 @@ class Enchantment{
|
|||||||
* Returns a bitset indicating what item types can have this item applied from an enchanting table.
|
* Returns a bitset indicating what item types can have this item applied from an enchanting table.
|
||||||
*
|
*
|
||||||
* @deprecated
|
* @deprecated
|
||||||
|
* @see AvailableEnchantmentRegistry::getPrimaryItemTags()
|
||||||
*/
|
*/
|
||||||
public function getPrimaryItemFlags() : int{
|
public function getPrimaryItemFlags() : int{
|
||||||
return $this->primaryItemFlags;
|
return $this->primaryItemFlags;
|
||||||
@ -93,6 +94,7 @@ class Enchantment{
|
|||||||
* an anvil.
|
* an anvil.
|
||||||
*
|
*
|
||||||
* @deprecated
|
* @deprecated
|
||||||
|
* @see AvailableEnchantmentRegistry::getSecondaryItemTags()
|
||||||
*/
|
*/
|
||||||
public function getSecondaryItemFlags() : int{
|
public function getSecondaryItemFlags() : int{
|
||||||
return $this->secondaryItemFlags;
|
return $this->secondaryItemFlags;
|
||||||
@ -102,6 +104,7 @@ class Enchantment{
|
|||||||
* Returns whether this enchantment can apply to the item type from an enchanting table.
|
* Returns whether this enchantment can apply to the item type from an enchanting table.
|
||||||
*
|
*
|
||||||
* @deprecated
|
* @deprecated
|
||||||
|
* @see AvailableEnchantmentRegistry
|
||||||
*/
|
*/
|
||||||
public function hasPrimaryItemType(int $flag) : bool{
|
public function hasPrimaryItemType(int $flag) : bool{
|
||||||
return ($this->primaryItemFlags & $flag) !== 0;
|
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.
|
* Returns whether this enchantment can apply to the item type from an anvil, if it is not a primary item.
|
||||||
*
|
*
|
||||||
* @deprecated
|
* @deprecated
|
||||||
|
* @see AvailableEnchantmentRegistry
|
||||||
*/
|
*/
|
||||||
public function hasSecondaryItemType(int $flag) : bool{
|
public function hasSecondaryItemType(int $flag) : bool{
|
||||||
return ($this->secondaryItemFlags & $flag) !== 0;
|
return ($this->secondaryItemFlags & $flag) !== 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user