PocketMine-MP 5.16.1 git-585aee9386a787c95e73dd0a05ffca8329606b68
pocketmine\block\tile\TileFactory Class Reference
+ Collaboration diagram for pocketmine\block\tile\TileFactory:

Public Member Functions

 createFromData (World $world, CompoundTag $nbt)
 getSaveId (string $class)
 register (string $className, array $saveNames=[])

Detailed Description

Definition at line 38 of file TileFactory.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\block\tile\TileFactory::__construct ( )

Definition at line 52 of file TileFactory.php.

Member Function Documentation

◆ createFromData()

pocketmine\block\tile\TileFactory::createFromData ( World  $world,
CompoundTag  $nbt 

Definition at line 121 of file TileFactory.php.

◆ getSaveId()

pocketmine\block\tile\TileFactory::getSaveId ( string  $class)

@phpstan-param class-string<Tile> $class

Definition at line 145 of file TileFactory.php.

◆ register()

pocketmine\block\tile\TileFactory::register ( string  $className,
array  $saveNames = [] 
string[]$saveNames@phpstan-param class-string<Tile> $className

Definition at line 102 of file TileFactory.php.

References pocketmine\utils\Utils\testValidInstance().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: