ItemFactory/BlockFactory: give more specific class descriptions

these classes both have a very specific purpose now, which is much lesser than it was in PM3.
This commit is contained in:
Dylan K. Taylor 2021-04-16 21:27:28 +01:00
parent c979ab8aa0
commit da51f106de
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
2 changed files with 4 additions and 2 deletions

View File

@ -59,7 +59,8 @@ use function get_class;
use function min; use function min;
/** /**
* Manages block registration and instance creation * Manages deserializing block types from their legacy blockIDs and metadata.
* This is primarily needed for loading chunks from disk.
*/ */
class BlockFactory{ class BlockFactory{
use SingletonTrait; use SingletonTrait;

View File

@ -44,7 +44,8 @@ use pocketmine\utils\SingletonTrait;
use pocketmine\world\World; use pocketmine\world\World;
/** /**
* Manages Item instance creation and registration * Manages deserializing item types from their legacy ID/metadata.
* This is primarily needed for loading inventories saved in the world (or playerdata storage).
*/ */
class ItemFactory{ class ItemFactory{
use SingletonTrait; use SingletonTrait;