PocketMine-MP 5.15.1 git-be6754494fdbbb9dd57c058ba0e33a4a78c4581f
pocketmine\plugin\ResourceProvider Interface Reference
+ Inheritance diagram for pocketmine\plugin\ResourceProvider:
+ Collaboration diagram for pocketmine\plugin\ResourceProvider:

Public Member Functions

 getResource (string $filename)
 
 getResources ()
 

Detailed Description

Definition at line 26 of file ResourceProvider.php.

Member Function Documentation

◆ getResource()

pocketmine\plugin\ResourceProvider::getResource ( string  $filename)

Gets an embedded resource on the plugin file. WARNING: You must close the resource given using fclose()

Returns
null|resource Resource data, or null

Implemented in pocketmine\plugin\DiskResourceProvider.

◆ getResources()

pocketmine\plugin\ResourceProvider::getResources ( )

Returns all the resources packaged with the plugin in the form ["path/in/resources" => SplFileInfo]

Returns
\SplFileInfo[]

Implemented in pocketmine\plugin\DiskResourceProvider.


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