Update documentation for Item::__construct()

This commit is contained in:
Dylan K. Taylor 2022-07-06 23:54:29 +01:00
parent 269b6ed16a
commit 0ad2985247
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -100,8 +100,9 @@ class Item implements \JsonSerializable{
* Constructs a new Item type. This constructor should ONLY be used when constructing a new item TYPE to register
* into the index.
*
* NOTE: This should NOT BE USED for creating items to set into an inventory. Use {@link ItemFactory#get} for that
* NOTE: This should NOT BE USED for creating items to set into an inventory. Use VanillaItems for that
* purpose.
* @see VanillaItems
*/
public function __construct(ItemIdentifier $identifier, string $name = "Unknown"){
$this->identifier = $identifier;