Skip to content

ResourceProvider ​

interface · pocketmine\plugin\ResourceProvider · source

Deprecated

This class is deprecated.

Methods ​

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.