Added script to update registry/enum docblocks

This commit is contained in:
Dylan K. Taylor
2021-03-22 16:00:09 +00:00
parent a515b5e1b8
commit 90161f24e3
14 changed files with 168 additions and 92 deletions

View File

@ -27,13 +27,13 @@ use pocketmine\utils\EnumTrait;
/**
* This doc-block is generated automatically, do not modify it manually.
* This must be regenerated whenever enum members are added, removed or changed.
* @see EnumTrait::_generateMethodAnnotations()
* This must be regenerated whenever registry members are added, removed or changed.
* @see \pocketmine\utils\RegistryUtils::_generateMethodAnnotations()
*
* @method static self SURVIVAL()
* @method static self CREATIVE()
* @method static self ADVENTURE()
* @method static self SPECTATOR()
* @method static GameMode SURVIVAL()
* @method static GameMode CREATIVE()
* @method static GameMode ADVENTURE()
* @method static GameMode SPECTATOR()
*/
final class GameMode{
use EnumTrait {

View File

@ -28,11 +28,11 @@ use pocketmine\utils\EnumTrait;
/**
* This doc-block is generated automatically, do not modify it manually.
* This must be regenerated whenever registry members are added, removed or changed.
* @see RegistryTrait::_generateMethodAnnotations()
* @see \pocketmine\utils\RegistryUtils::_generateMethodAnnotations()
*
* @method static self NEEDED()
* @method static self REQUESTED()
* @method static self SENT()
* @method static UsedChunkStatus NEEDED()
* @method static UsedChunkStatus REQUESTED()
* @method static UsedChunkStatus SENT()
*/
final class UsedChunkStatus{
use EnumTrait;