| 
    PocketMine-MP 5.37.1 git-cef37e7835c666594588f957a47b27d521c6a58e
    
   | 
 
 Inheritance diagram for pocketmine\resourcepacks\ZippedResourcePack:
 Collaboration diagram for pocketmine\resourcepacks\ZippedResourcePack:Public Member Functions | |
| __construct (string $zipPath) | |
| getPackChunk (int $start, int $length) | |
| getPackId () | |
| getPackName () | |
| getPackSize () | |
| getPackVersion () | |
| getPath () | |
| getSha256 () | |
| getSha256 (bool $cached=true) | |
Protected Attributes | |
| $fileResource | |
| Manifest | $manifest | 
| string | $path | 
| string | $sha256 = null | 
Definition at line 43 of file ZippedResourcePack.php.
| pocketmine\resourcepacks\ZippedResourcePack::__construct | ( | string | $zipPath | ) | 
| string | $zipPath | Path to the resource pack zip | 
| ResourcePackException | 
Definition at line 55 of file ZippedResourcePack.php.
| pocketmine\resourcepacks\ZippedResourcePack::__destruct | ( | ) | 
Definition at line 125 of file ZippedResourcePack.php.
| pocketmine\resourcepacks\ZippedResourcePack::getPackChunk | ( | int | $start, | 
| int | $length ) | 
Returns a chunk of the resource pack zip as a byte-array for sending to clients.
Note that resource packs must always be in zip archive format for sending. A folder resource loader may need to perform on-the-fly compression for this purpose.
| int | $start | Offset to start reading the chunk from | 
| int | $length | Maximum length of data to return. | 
@phpstan-param positive-int $length
InvalidArgumentException if the chunk does not exist
Implements pocketmine\resourcepacks\ResourcePack.
Definition at line 156 of file ZippedResourcePack.php.
| pocketmine\resourcepacks\ZippedResourcePack::getPackId | ( | ) | 
Returns the pack's UUID as a human-readable string
Implements pocketmine\resourcepacks\ResourcePack.
Definition at line 141 of file ZippedResourcePack.php.
| pocketmine\resourcepacks\ZippedResourcePack::getPackName | ( | ) | 
Returns the human-readable name of the resource pack
Implements pocketmine\resourcepacks\ResourcePack.
Definition at line 133 of file ZippedResourcePack.php.
| pocketmine\resourcepacks\ZippedResourcePack::getPackSize | ( | ) | 
Returns the size of the pack on disk in bytes.
Implements pocketmine\resourcepacks\ResourcePack.
Definition at line 145 of file ZippedResourcePack.php.
| pocketmine\resourcepacks\ZippedResourcePack::getPackVersion | ( | ) | 
Returns a version number for the pack in the format major.minor.patch
Implements pocketmine\resourcepacks\ResourcePack.
Definition at line 137 of file ZippedResourcePack.php.
| pocketmine\resourcepacks\ZippedResourcePack::getPath | ( | ) | 
Definition at line 129 of file ZippedResourcePack.php.
      
  | 
  inherited | 
Returns the raw SHA256 sum of the compressed resource pack zip. This is used by clients to validate pack downloads.
| pocketmine\resourcepacks\ZippedResourcePack::getSha256 | ( | bool | $cached = true | ) | 
Definition at line 149 of file ZippedResourcePack.php.
      
  | 
  protected | 
Definition at line 49 of file ZippedResourcePack.php.
      
  | 
  protected | 
Definition at line 45 of file ZippedResourcePack.php.
      
  | 
  protected | 
Definition at line 44 of file ZippedResourcePack.php.
      
  | 
  protected | 
Definition at line 46 of file ZippedResourcePack.php.