PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
Loading...
Searching...
No Matches
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

Deprecated

Definition at line 29 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: