mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Merge branch '3.5'
This commit is contained in:
@ -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 */
|
||||
|
@ -23,6 +23,9 @@ declare(strict_types=1);
|
||||
|
||||
namespace pocketmine\event;
|
||||
|
||||
use function constant;
|
||||
use function defined;
|
||||
use function strtoupper;
|
||||
|
||||
/**
|
||||
* List of event priorities
|
||||
|
@ -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{
|
||||
/**
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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 */
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
@ -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";
|
||||
|
Reference in New Issue
Block a user