PocketMine-MP 5.19.1 git-5cc1068cd43264d3363295eb8d6901e02f467897
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: