Documentation

ResourcePackManager
in package

Table of Contents

$path  : string
$resourcePacks  : array<string|int, ResourcePack>
$serverForceResources  : bool
$uuidList  : array<string|int, ResourcePack>
__construct()  : mixed
getPackById()  : ResourcePack|null
Returns the resource pack matching the specified UUID string, or null if the ID was not recognized.
getPackIdList()  : array<string|int, string>
Returns an array of pack IDs for packs currently in use.
getPath()  : string
Returns the directory which resource packs are loaded from.
getResourceStack()  : array<string|int, ResourcePack>
Returns an array of resource packs in use, sorted in order of priority.
resourcePacksRequired()  : bool
Returns whether players must accept resource packs in order to join.

Properties

Methods

__construct()

public __construct(string $path, Logger $logger) : mixed
Parameters
$path : string

Path to resource-packs directory.

$logger : Logger
Return values
mixed

getPackById()

Returns the resource pack matching the specified UUID string, or null if the ID was not recognized.

public getPackById(string $id) : ResourcePack|null
Parameters
$id : string
Return values
ResourcePack|null

getPackIdList()

Returns an array of pack IDs for packs currently in use.

public getPackIdList() : array<string|int, string>
Return values
array<string|int, string>

getPath()

Returns the directory which resource packs are loaded from.

public getPath() : string
Return values
string

resourcePacksRequired()

Returns whether players must accept resource packs in order to join.

public resourcePacksRequired() : bool
Return values
bool

Search results