Merge branch '3.5'

This commit is contained in:
Dylan K. Taylor
2019-01-04 23:28:44 +00:00
258 changed files with 1322 additions and 40 deletions

View File

@ -26,6 +26,9 @@ declare(strict_types=1);
*/
namespace pocketmine\event;
use function assert;
use function get_class;
abstract class Event{
private const MAX_EVENT_CALL_DEPTH = 50;
/** @var int */

View File

@ -23,6 +23,9 @@ declare(strict_types=1);
namespace pocketmine\event;
use function constant;
use function defined;
use function strtoupper;
/**
* List of event priorities

View File

@ -26,6 +26,9 @@ namespace pocketmine\event;
use pocketmine\plugin\Plugin;
use pocketmine\plugin\RegisteredListener;
use pocketmine\utils\Utils;
use function array_fill_keys;
use function in_array;
use function spl_object_hash;
class HandlerList{
/**

View File

@ -26,6 +26,7 @@ namespace pocketmine\event\block;
use pocketmine\block\Block;
use pocketmine\event\Cancellable;
use pocketmine\Player;
use function count;
/**
* Called when a sign is changed by a player.

View File

@ -25,6 +25,7 @@ namespace pocketmine\event\entity;
use pocketmine\entity\Entity;
use pocketmine\event\Cancellable;
use function array_sum;
/**
* Called when an entity takes damage.

View File

@ -28,6 +28,7 @@ use pocketmine\entity\Living;
use pocketmine\entity\projectile\Projectile;
use pocketmine\event\Cancellable;
use pocketmine\item\Item;
use function count;
class EntityShootBowEvent extends EntityEvent implements Cancellable{
/** @var Item */

View File

@ -27,6 +27,7 @@ use pocketmine\event\Event;
use pocketmine\network\mcpe\NetworkSession;
use pocketmine\network\NetworkInterface;
use pocketmine\Player;
use function is_a;
/**
* Allows the creation of players overriding the base Player class

View File

@ -24,6 +24,7 @@ declare(strict_types=1);
namespace pocketmine\event\player;
use pocketmine\Player;
use function array_keys;
/**
* Called when a player connects to the server, prior to authentication taking place.

View File

@ -27,6 +27,10 @@ use pocketmine\Player;
use pocketmine\plugin\Plugin;
use pocketmine\Server;
use pocketmine\utils\Binary;
use function chr;
use function count;
use function str_replace;
use function substr;
class QueryRegenerateEvent extends ServerEvent{
public const GAME_ID = "MINECRAFTPE";