PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
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

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: