mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
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:
parent
c979ab8aa0
commit
da51f106de
@ -59,7 +59,8 @@ use function get_class;
|
||||
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{
|
||||
use SingletonTrait;
|
||||
|
@ -44,7 +44,8 @@ use pocketmine\utils\SingletonTrait;
|
||||
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{
|
||||
use SingletonTrait;
|
||||
|
Loading…
x
Reference in New Issue
Block a user