PocketMine-MP 5.15.1 git-fb9a74e8799c71ed8292cfa53abe7a4c9204629d
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()

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]


Implemented in pocketmine\plugin\DiskResourceProvider.

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