phpdoc armageddon for master, pass 1

This commit is contained in:
Dylan K. Taylor
2020-01-22 11:55:03 +00:00
parent 4bae3baa74
commit 67bcc1c0fb
397 changed files with 0 additions and 5391 deletions

View File

@ -29,31 +29,26 @@ interface ResourcePack{
/**
* Returns the path to the resource pack. This might be a file or a directory, depending on the type of pack.
* @return string
*/
public function getPath() : string;
/**
* Returns the human-readable name of the resource pack
* @return string
*/
public function getPackName() : string;
/**
* Returns the pack's UUID as a human-readable string
* @return string
*/
public function getPackId() : string;
/**
* Returns the size of the pack on disk in bytes.
* @return int
*/
public function getPackSize() : int;
/**
* Returns a version number for the pack in the format major.minor.patch
* @return string
*/
public function getPackVersion() : string;

View File

@ -52,7 +52,6 @@ class ResourcePackManager{
/**
* @param string $path Path to resource-packs directory.
* @param \Logger $logger
*/
public function __construct(string $path, \Logger $logger){
$this->path = $path;
@ -122,7 +121,6 @@ class ResourcePackManager{
/**
* Returns the directory which resource packs are loaded from.
* @return string
*/
public function getPath() : string{
return $this->path;
@ -130,7 +128,6 @@ class ResourcePackManager{
/**
* Returns whether players must accept resource packs in order to join.
* @return bool
*/
public function resourcePacksRequired() : bool{
return $this->serverForceResources;
@ -146,10 +143,6 @@ class ResourcePackManager{
/**
* Returns the resource pack matching the specified UUID string, or null if the ID was not recognized.
*
* @param string $id
*
* @return ResourcePack|null
*/
public function getPackById(string $id) : ?ResourcePack{
return $this->uuidList[strtolower($id)] ?? null;

View File

@ -43,10 +43,6 @@ class ZippedResourcePack implements ResourcePack{
/**
* Performs basic validation checks on a resource pack's manifest.json.
* TODO: add more manifest validation
*
* @param \stdClass $manifest
*
* @return bool
*/
public static function verifyManifest(\stdClass $manifest) : bool{
if(!isset($manifest->format_version) or !isset($manifest->header) or !isset($manifest->modules)){