PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
Loading...
Searching...
No Matches
pocketmine\plugin\FolderPluginLoader Class Reference
+ Inheritance diagram for pocketmine\plugin\FolderPluginLoader:
+ Collaboration diagram for pocketmine\plugin\FolderPluginLoader:

Public Member Functions

 __construct (private readonly ThreadSafeClassLoader $loader)
 
 canLoadPlugin (string $path)
 
 getAccessProtocol ()
 
 getPluginDescription (string $path)
 
 loadPlugin (string $path)
 

Detailed Description

Definition at line 32 of file FolderPluginLoader.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\plugin\FolderPluginLoader::__construct ( private readonly ThreadSafeClassLoader $loader)

Definition at line 33 of file FolderPluginLoader.php.

Member Function Documentation

◆ canLoadPlugin()

pocketmine\plugin\FolderPluginLoader::canLoadPlugin ( string $path)

Returns whether this PluginLoader can load the plugin in the given path.

Implements pocketmine\plugin\PluginLoader.

Definition at line 37 of file FolderPluginLoader.php.

◆ getAccessProtocol()

pocketmine\plugin\FolderPluginLoader::getAccessProtocol ( )

Returns the protocol prefix used to access files in this plugin, e.g. file://, phar://

Implements pocketmine\plugin\PluginLoader.

Definition at line 69 of file FolderPluginLoader.php.

◆ getPluginDescription()

pocketmine\plugin\FolderPluginLoader::getPluginDescription ( string $path)

Gets the PluginDescription from the file

Implements pocketmine\plugin\PluginLoader.

Definition at line 54 of file FolderPluginLoader.php.

◆ loadPlugin()

pocketmine\plugin\FolderPluginLoader::loadPlugin ( string $path)

Loads the plugin contained in $file

Implements pocketmine\plugin\PluginLoader.

Definition at line 44 of file FolderPluginLoader.php.


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