mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 15:41:33 +00:00
Mark ItemFactory::get() and BlockFactory::get() as @deprecated
This commit is contained in:
@@ -424,7 +424,11 @@ class ItemFactory{
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an instance of the Item with the specified id, meta, count and NBT.
|
||||
* @deprecated This method should ONLY be used for deserializing data, e.g. from a config or database. For all other
|
||||
* purposes, use VanillaItems.
|
||||
* @see VanillaItems
|
||||
*
|
||||
* Deserializes an item from the provided legacy ID, legacy meta, count and NBT.
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
*/
|
||||
|
Reference in New Issue
Block a user