Skip to content

DiskResourceProvider ​

class · pocketmine\plugin\DiskResourceProvider · source

Implements ResourceProvider

Deprecated

This class is deprecated.

Provides resources from the given plugin directory on disk. The path may be prefixed with a specific access protocol to enable special types of access.

Methods ​

__construct() ​

php
public function __construct(string $path)

getResource() ​

php
public function getResource(string $filename)

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

getResources() ​

php
public function getResources() : array

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

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.