mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-09 11:16:57 +00:00
Add EOF newlines where missing (bulk) (#1836)
This should solve issues with people making GitHub PRs and having the web editor messing things up. GitHub Web Editor sucks :(
This commit is contained in:
@ -62,4 +62,4 @@ abstract class EventPriority{
|
||||
*/
|
||||
public const MONITOR = 0;
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -121,4 +121,4 @@ class LevelTimings{
|
||||
$this->tickEntities = new TimingsHandler($name . "tickEntities");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -25,4 +25,4 @@ namespace pocketmine\event;
|
||||
|
||||
interface Listener{
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -55,4 +55,4 @@ class TextContainer{
|
||||
public function __toString() : string{
|
||||
return $this->getText();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -264,4 +264,4 @@ abstract class Timings{
|
||||
return self::$packetSendTimingMap[$pk::NETWORK_ID];
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -168,4 +168,4 @@ class TimingsHandler{
|
||||
unset(self::$HANDLERS[spl_object_hash($this)]);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -77,4 +77,4 @@ class TranslationContainer extends TextContainer{
|
||||
++$i;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -113,4 +113,4 @@ class BlockBreakEvent extends BlockEvent implements Cancellable{
|
||||
public function setDropsVariadic(Item ...$drops){
|
||||
$this->blockDrops = $drops;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -46,4 +46,4 @@ abstract class BlockEvent extends Event{
|
||||
public function getBlock() : Block{
|
||||
return $this->block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -26,4 +26,4 @@ namespace pocketmine\event\block;
|
||||
class BlockFormEvent extends BlockGrowEvent{
|
||||
public static $handlerList = null;
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -47,4 +47,4 @@ class BlockGrowEvent extends BlockEvent implements Cancellable{
|
||||
return $this->newState;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -82,4 +82,4 @@ class BlockPlaceEvent extends BlockEvent implements Cancellable{
|
||||
public function getBlockAgainst() : Block{
|
||||
return $this->blockAgainst;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -46,4 +46,4 @@ class BlockSpreadEvent extends BlockFormEvent{
|
||||
return $this->source;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -31,4 +31,4 @@ use pocketmine\event\Cancellable;
|
||||
class BlockUpdateEvent extends BlockEvent implements Cancellable{
|
||||
public static $handlerList = null;
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -31,4 +31,4 @@ use pocketmine\event\Cancellable;
|
||||
class LeavesDecayEvent extends BlockEvent implements Cancellable{
|
||||
public static $handlerList = null;
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -102,4 +102,4 @@ class SignChangeEvent extends BlockEvent implements Cancellable{
|
||||
}
|
||||
$this->lines[$index] = $line;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -26,4 +26,4 @@ namespace pocketmine\event\entity;
|
||||
class EntityArmorChangeEvent extends EntityInventoryChangeEvent{
|
||||
public static $handlerList = null;
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -58,4 +58,4 @@ class EntityBlockChangeEvent extends EntityEvent implements Cancellable{
|
||||
return $this->to;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -48,4 +48,4 @@ class EntityCombustByBlockEvent extends EntityCombustEvent{
|
||||
return $this->combuster;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -47,4 +47,4 @@ class EntityCombustByEntityEvent extends EntityCombustEvent{
|
||||
return $this->combuster;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -52,4 +52,4 @@ class EntityCombustEvent extends EntityEvent implements Cancellable{
|
||||
$this->duration = $duration;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -54,4 +54,4 @@ class EntityDamageByBlockEvent extends EntityDamageEvent{
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -55,4 +55,4 @@ class EntityDamageByChildEntityEvent extends EntityDamageByEntityEvent{
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -157,4 +157,4 @@ class EntityDamageEvent extends EntityEvent implements Cancellable{
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -63,4 +63,4 @@ class EntityDeathEvent extends EntityEvent{
|
||||
$this->drops = $drops;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -89,4 +89,4 @@ class EntityDespawnEvent extends EntityEvent{
|
||||
return $this->entity instanceof Item;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -68,4 +68,4 @@ class EntityEffectAddEvent extends EntityEffectEvent{
|
||||
return $this->oldEffect;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -40,4 +40,4 @@ class EntityEffectEvent extends EntityEvent implements Cancellable{
|
||||
public function getEffect() : Effect{
|
||||
return $this->effect;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -29,4 +29,4 @@ namespace pocketmine\event\entity;
|
||||
class EntityEffectRemoveEvent extends EntityEffectEvent{
|
||||
public static $handlerList = null;
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -39,4 +39,4 @@ abstract class EntityEvent extends Event{
|
||||
public function getEntity(){
|
||||
return $this->entity;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -93,4 +93,4 @@ class EntityExplodeEvent extends EntityEvent implements Cancellable{
|
||||
$this->yield = $yield;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -79,4 +79,4 @@ class EntityInventoryChangeEvent extends EntityEvent implements Cancellable{
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -48,4 +48,4 @@ class EntityLevelChangeEvent extends EntityEvent implements Cancellable{
|
||||
public function getTarget() : Level{
|
||||
return $this->targetLevel;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -46,4 +46,4 @@ class EntityMotionEvent extends EntityEvent implements Cancellable{
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -74,4 +74,4 @@ class EntityRegainHealthEvent extends EntityEvent implements Cancellable{
|
||||
return $this->reason;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -105,4 +105,4 @@ class EntityShootBowEvent extends EntityEvent implements Cancellable{
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -97,4 +97,4 @@ class EntitySpawnEvent extends EntityEvent{
|
||||
return $this->entity instanceof Item;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -71,4 +71,4 @@ class EntityTeleportEvent extends EntityEvent implements Cancellable{
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -72,4 +72,4 @@ class ExplosionPrimeEvent extends EntityEvent implements Cancellable{
|
||||
$this->blockBreaking = $affectsBlocks;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -44,4 +44,4 @@ class ItemDespawnEvent extends EntityEvent implements Cancellable{
|
||||
return $this->entity;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -43,4 +43,4 @@ class ItemSpawnEvent extends EntityEvent{
|
||||
return $this->entity;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -43,4 +43,4 @@ class ProjectileHitEvent extends EntityEvent{
|
||||
return $this->entity;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -44,4 +44,4 @@ class ProjectileLaunchEvent extends EntityEvent implements Cancellable{
|
||||
return $this->entity;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -93,4 +93,4 @@ class FurnaceBurnEvent extends BlockEvent implements Cancellable{
|
||||
public function setBurning(bool $burning){
|
||||
$this->burning = $burning;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -78,4 +78,4 @@ class FurnaceSmeltEvent extends BlockEvent implements Cancellable{
|
||||
public function setResult(Item $result){
|
||||
$this->result = $result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -48,4 +48,4 @@ class InventoryCloseEvent extends InventoryEvent{
|
||||
return $this->who;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -52,4 +52,4 @@ abstract class InventoryEvent extends Event{
|
||||
public function getViewers() : array{
|
||||
return $this->inventory->getViewers();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -49,4 +49,4 @@ class InventoryOpenEvent extends InventoryEvent implements Cancellable{
|
||||
return $this->who;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -49,4 +49,4 @@ class InventoryPickupArrowEvent extends InventoryEvent implements Cancellable{
|
||||
return $this->arrow;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -49,4 +49,4 @@ class InventoryPickupItemEvent extends InventoryEvent implements Cancellable{
|
||||
return $this->item;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -49,4 +49,4 @@ abstract class ChunkEvent extends LevelEvent{
|
||||
public function getChunk() : Chunk{
|
||||
return $this->chunk;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -47,4 +47,4 @@ class ChunkLoadEvent extends ChunkEvent{
|
||||
public function isNewChunk() : bool{
|
||||
return $this->newChunk;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -28,4 +28,4 @@ namespace pocketmine\event\level;
|
||||
*/
|
||||
class ChunkPopulateEvent extends ChunkEvent{
|
||||
public static $handlerList = null;
|
||||
}
|
||||
}
|
||||
|
@ -30,4 +30,4 @@ use pocketmine\event\Cancellable;
|
||||
*/
|
||||
class ChunkUnloadEvent extends ChunkEvent implements Cancellable{
|
||||
public static $handlerList = null;
|
||||
}
|
||||
}
|
||||
|
@ -46,4 +46,4 @@ abstract class LevelEvent extends Event{
|
||||
public function getLevel() : Level{
|
||||
return $this->level;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -28,4 +28,4 @@ namespace pocketmine\event\level;
|
||||
*/
|
||||
class LevelInitEvent extends LevelEvent{
|
||||
public static $handlerList = null;
|
||||
}
|
||||
}
|
||||
|
@ -28,4 +28,4 @@ namespace pocketmine\event\level;
|
||||
*/
|
||||
class LevelLoadEvent extends LevelEvent{
|
||||
public static $handlerList = null;
|
||||
}
|
||||
}
|
||||
|
@ -28,4 +28,4 @@ namespace pocketmine\event\level;
|
||||
*/
|
||||
class LevelSaveEvent extends LevelEvent{
|
||||
public static $handlerList = null;
|
||||
}
|
||||
}
|
||||
|
@ -30,4 +30,4 @@ use pocketmine\event\Cancellable;
|
||||
*/
|
||||
class LevelUnloadEvent extends LevelEvent implements Cancellable{
|
||||
public static $handlerList = null;
|
||||
}
|
||||
}
|
||||
|
@ -51,4 +51,4 @@ class SpawnChangeEvent extends LevelEvent{
|
||||
public function getPreviousSpawn() : Position{
|
||||
return $this->previousSpawn;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -50,4 +50,4 @@ class PlayerAchievementAwardedEvent extends PlayerEvent implements Cancellable{
|
||||
public function getAchievement() : string{
|
||||
return $this->achievement;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -57,4 +57,4 @@ class PlayerAnimationEvent extends PlayerEvent implements Cancellable{
|
||||
return $this->animationType;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -45,4 +45,4 @@ class PlayerBedEnterEvent extends PlayerEvent implements Cancellable{
|
||||
return $this->bed;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -44,4 +44,4 @@ class PlayerBedLeaveEvent extends PlayerEvent{
|
||||
return $this->bed;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -56,4 +56,4 @@ class PlayerBlockPickEvent extends PlayerEvent implements Cancellable{
|
||||
public function setResultItem(Item $item) : void{
|
||||
$this->resultItem = clone $item;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -26,4 +26,4 @@ namespace pocketmine\event\player;
|
||||
class PlayerBucketEmptyEvent extends PlayerBucketEvent{
|
||||
public static $handlerList = null;
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -25,4 +25,4 @@ namespace pocketmine\event\player;
|
||||
|
||||
class PlayerBucketFillEvent extends PlayerBucketEvent{
|
||||
public static $handlerList = null;
|
||||
}
|
||||
}
|
||||
|
@ -75,4 +75,4 @@ class PlayerChangeSkinEvent extends PlayerEvent implements Cancellable{
|
||||
$this->newSkin = $skin;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -113,4 +113,4 @@ class PlayerChatEvent extends PlayerEvent implements Cancellable{
|
||||
public function setRecipients(array $recipients){
|
||||
$this->recipients = $recipients;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -71,4 +71,4 @@ class PlayerCommandPreprocessEvent extends PlayerEvent implements Cancellable{
|
||||
$this->player = $player;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -138,4 +138,4 @@ class PlayerCreationEvent extends Event{
|
||||
$this->playerClass = $class;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -75,4 +75,4 @@ class PlayerDataSaveEvent extends Event implements Cancellable{
|
||||
public function getPlayer() : IPlayer{
|
||||
return Server::getInstance()->getOfflinePlayer($this->playerName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -84,4 +84,4 @@ class PlayerDeathEvent extends EntityDeathEvent{
|
||||
$this->keepInventory = $keepInventory;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -52,4 +52,4 @@ class PlayerDropItemEvent extends PlayerEvent implements Cancellable{
|
||||
return $this->drop;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -98,4 +98,4 @@ class PlayerEditBookEvent extends PlayerEvent implements Cancellable{
|
||||
public function getModifiedPages() : array{
|
||||
return $this->modifiedPages;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -36,4 +36,4 @@ abstract class PlayerEvent extends Event{
|
||||
public function getPlayer() : Player{
|
||||
return $this->player;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -44,4 +44,4 @@ class PlayerGameModeChangeEvent extends PlayerEvent implements Cancellable{
|
||||
return $this->gamemode;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -52,4 +52,4 @@ class PlayerItemConsumeEvent extends PlayerEvent implements Cancellable{
|
||||
return clone $this->item;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -77,4 +77,4 @@ class PlayerItemHeldEvent extends PlayerEvent implements Cancellable{
|
||||
public function getItem() : Item{
|
||||
return $this->item;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -60,4 +60,4 @@ class PlayerJoinEvent extends PlayerEvent{
|
||||
return $this->joinMessage;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -70,4 +70,4 @@ class PlayerKickEvent extends PlayerEvent implements Cancellable{
|
||||
return $this->quitMessage;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -58,4 +58,4 @@ class PlayerLoginEvent extends PlayerEvent implements Cancellable{
|
||||
return $this->kickMessage;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -66,4 +66,4 @@ class PlayerMoveEvent extends PlayerEvent implements Cancellable{
|
||||
public function setTo(Location $to){
|
||||
$this->to = $to;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -58,4 +58,4 @@ class PlayerPreLoginEvent extends PlayerEvent implements Cancellable{
|
||||
return $this->kickMessage;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -57,4 +57,4 @@ class PlayerRespawnEvent extends PlayerEvent{
|
||||
public function setRespawnPosition(Position $position){
|
||||
$this->position = $position;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -48,4 +48,4 @@ class PlayerToggleFlightEvent extends PlayerEvent implements Cancellable{
|
||||
return $this->isFlying;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -48,4 +48,4 @@ class PlayerToggleSneakEvent extends PlayerEvent implements Cancellable{
|
||||
return $this->isSneaking;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -48,4 +48,4 @@ class PlayerToggleSprintEvent extends PlayerEvent implements Cancellable{
|
||||
return $this->isSprinting;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -90,4 +90,4 @@ class PlayerTransferEvent extends PlayerEvent implements Cancellable{
|
||||
public function setMessage(string $message){
|
||||
$this->message = $message;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -30,4 +30,4 @@ use pocketmine\event\player\PlayerEvent;
|
||||
|
||||
abstract class PlayerCheatEvent extends PlayerEvent{
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -74,4 +74,4 @@ class PlayerIllegalMoveEvent extends PlayerCheatEvent implements Cancellable{
|
||||
public function getExpectedPosition() : Vector3{
|
||||
return $this->expectedPosition;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -57,4 +57,4 @@ class DataPacketReceiveEvent extends ServerEvent implements Cancellable{
|
||||
public function getPlayer() : Player{
|
||||
return $this->player;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -57,4 +57,4 @@ class DataPacketSendEvent extends ServerEvent implements Cancellable{
|
||||
public function getPlayer() : Player{
|
||||
return $this->player;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -92,4 +92,4 @@ class LowMemoryEvent extends ServerEvent{
|
||||
return $this->getMemory() - ($this->isGlobal() ? Utils::getMemoryUsage(true)[1] : Utils::getMemoryUsage(true)[0]);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -47,4 +47,4 @@ class NetworkInterfaceCrashEvent extends NetworkInterfaceEvent{
|
||||
public function getCrashInformation() : \Throwable{
|
||||
return $this->exception;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -42,4 +42,4 @@ class NetworkInterfaceEvent extends ServerEvent{
|
||||
public function getInterface() : SourceInterface{
|
||||
return $this->interface;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -31,4 +31,4 @@ use pocketmine\event\Cancellable;
|
||||
class NetworkInterfaceRegisterEvent extends NetworkInterfaceEvent implements Cancellable{
|
||||
public static $handlerList = null;
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -29,4 +29,4 @@ namespace pocketmine\event\server;
|
||||
class NetworkInterfaceUnregisterEvent extends NetworkInterfaceEvent{
|
||||
public static $handlerList = null;
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -281,4 +281,4 @@ class QueryRegenerateEvent extends ServerEvent{
|
||||
return $this->serverName . "\x00" . $this->gametype . "\x00" . $this->map . "\x00" . $this->numPlayers . "\x00" . $this->maxPlayers . "\x00" . Binary::writeLShort($this->port) . $this->ip . "\x00";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -39,4 +39,4 @@ class RemoteServerCommandEvent extends ServerCommandEvent{
|
||||
parent::__construct($sender, $command);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user