mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 04:15:04 +00:00
Added typehints and PhpDoc for events API
excluded blocks and entities events API to avoid merge conflicts
This commit is contained in:
@@ -152,7 +152,7 @@ class HandlerList{
|
||||
*
|
||||
* @return RegisteredListener[]
|
||||
*/
|
||||
public function getRegisteredListeners($plugin = null){
|
||||
public function getRegisteredListeners($plugin = null) : array{
|
||||
if($plugin !== null){
|
||||
$listeners = [];
|
||||
foreach($this->getRegisteredListeners(null) as $hash => $listener){
|
||||
@@ -174,7 +174,7 @@ class HandlerList{
|
||||
/**
|
||||
* @return HandlerList[]
|
||||
*/
|
||||
public static function getHandlerLists(){
|
||||
public static function getHandlerLists() : array{
|
||||
return self::$allLists;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user