Be more specific with documentation of ItemFactory::register() and BlockFactory::register()

This commit is contained in:
Dylan K. Taylor 2021-04-16 21:24:16 +01:00
parent 6071746993
commit c979ab8aa0
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
2 changed files with 4 additions and 4 deletions

View File

@ -810,8 +810,8 @@ class BlockFactory{
}
/**
* Registers a block type into the index. Plugins may use this method to register new block types or override
* existing ones.
* Maps a block type to its corresponding ID. This is necessary to ensure that the block is correctly loaded when
* reading from disk storage.
*
* NOTE: If you are registering a new block type, you will need to add it to the creative inventory yourself - it
* will not automatically appear there.

View File

@ -395,8 +395,8 @@ class ItemFactory{
}
/**
* Registers an item type into the index. Plugins may use this method to register new item types or override existing
* ones.
* Maps an item type to its corresponding ID. This is necessary to ensure that the item is correctly loaded when
* reading data from disk storage.
*
* NOTE: If you are registering a new item type, you will need to add it to the creative inventory yourself - it
* will not automatically appear there.