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:
Dylan K. Taylor
2017-12-20 11:56:36 +00:00
committed by GitHub
parent 0ee78d2416
commit 4f8e4f0522
600 changed files with 600 additions and 600 deletions

View File

@ -62,4 +62,4 @@ abstract class EventPriority{
*/
public const MONITOR = 0;
}
}

View File

@ -121,4 +121,4 @@ class LevelTimings{
$this->tickEntities = new TimingsHandler($name . "tickEntities");
}
}
}

View File

@ -25,4 +25,4 @@ namespace pocketmine\event;
interface Listener{
}
}

View File

@ -55,4 +55,4 @@ class TextContainer{
public function __toString() : string{
return $this->getText();
}
}
}

View File

@ -264,4 +264,4 @@ abstract class Timings{
return self::$packetSendTimingMap[$pk::NETWORK_ID];
}
}
}

View File

@ -168,4 +168,4 @@ class TimingsHandler{
unset(self::$HANDLERS[spl_object_hash($this)]);
}
}
}

View File

@ -77,4 +77,4 @@ class TranslationContainer extends TextContainer{
++$i;
}
}
}
}

View File

@ -113,4 +113,4 @@ class BlockBreakEvent extends BlockEvent implements Cancellable{
public function setDropsVariadic(Item ...$drops){
$this->blockDrops = $drops;
}
}
}

View File

@ -46,4 +46,4 @@ abstract class BlockEvent extends Event{
public function getBlock() : Block{
return $this->block;
}
}
}

View File

@ -26,4 +26,4 @@ namespace pocketmine\event\block;
class BlockFormEvent extends BlockGrowEvent{
public static $handlerList = null;
}
}

View File

@ -47,4 +47,4 @@ class BlockGrowEvent extends BlockEvent implements Cancellable{
return $this->newState;
}
}
}

View File

@ -82,4 +82,4 @@ class BlockPlaceEvent extends BlockEvent implements Cancellable{
public function getBlockAgainst() : Block{
return $this->blockAgainst;
}
}
}

View File

@ -46,4 +46,4 @@ class BlockSpreadEvent extends BlockFormEvent{
return $this->source;
}
}
}

View File

@ -31,4 +31,4 @@ use pocketmine\event\Cancellable;
class BlockUpdateEvent extends BlockEvent implements Cancellable{
public static $handlerList = null;
}
}

View File

@ -31,4 +31,4 @@ use pocketmine\event\Cancellable;
class LeavesDecayEvent extends BlockEvent implements Cancellable{
public static $handlerList = null;
}
}

View File

@ -102,4 +102,4 @@ class SignChangeEvent extends BlockEvent implements Cancellable{
}
$this->lines[$index] = $line;
}
}
}

View File

@ -26,4 +26,4 @@ namespace pocketmine\event\entity;
class EntityArmorChangeEvent extends EntityInventoryChangeEvent{
public static $handlerList = null;
}
}

View File

@ -58,4 +58,4 @@ class EntityBlockChangeEvent extends EntityEvent implements Cancellable{
return $this->to;
}
}
}

View File

@ -48,4 +48,4 @@ class EntityCombustByBlockEvent extends EntityCombustEvent{
return $this->combuster;
}
}
}

View File

@ -47,4 +47,4 @@ class EntityCombustByEntityEvent extends EntityCombustEvent{
return $this->combuster;
}
}
}

View File

@ -52,4 +52,4 @@ class EntityCombustEvent extends EntityEvent implements Cancellable{
$this->duration = $duration;
}
}
}

View File

@ -54,4 +54,4 @@ class EntityDamageByBlockEvent extends EntityDamageEvent{
}
}
}

View File

@ -55,4 +55,4 @@ class EntityDamageByChildEntityEvent extends EntityDamageByEntityEvent{
}
}
}

View File

@ -157,4 +157,4 @@ class EntityDamageEvent extends EntityEvent implements Cancellable{
return true;
}
}
}

View File

@ -63,4 +63,4 @@ class EntityDeathEvent extends EntityEvent{
$this->drops = $drops;
}
}
}

View File

@ -89,4 +89,4 @@ class EntityDespawnEvent extends EntityEvent{
return $this->entity instanceof Item;
}
}
}

View File

@ -68,4 +68,4 @@ class EntityEffectAddEvent extends EntityEffectEvent{
return $this->oldEffect;
}
}
}

View File

@ -40,4 +40,4 @@ class EntityEffectEvent extends EntityEvent implements Cancellable{
public function getEffect() : Effect{
return $this->effect;
}
}
}

View File

@ -29,4 +29,4 @@ namespace pocketmine\event\entity;
class EntityEffectRemoveEvent extends EntityEffectEvent{
public static $handlerList = null;
}
}

View File

@ -39,4 +39,4 @@ abstract class EntityEvent extends Event{
public function getEntity(){
return $this->entity;
}
}
}

View File

@ -93,4 +93,4 @@ class EntityExplodeEvent extends EntityEvent implements Cancellable{
$this->yield = $yield;
}
}
}

View File

@ -79,4 +79,4 @@ class EntityInventoryChangeEvent extends EntityEvent implements Cancellable{
}
}
}

View File

@ -48,4 +48,4 @@ class EntityLevelChangeEvent extends EntityEvent implements Cancellable{
public function getTarget() : Level{
return $this->targetLevel;
}
}
}

View File

@ -46,4 +46,4 @@ class EntityMotionEvent extends EntityEvent implements Cancellable{
}
}
}

View File

@ -74,4 +74,4 @@ class EntityRegainHealthEvent extends EntityEvent implements Cancellable{
return $this->reason;
}
}
}

View File

@ -105,4 +105,4 @@ class EntityShootBowEvent extends EntityEvent implements Cancellable{
}
}
}

View File

@ -97,4 +97,4 @@ class EntitySpawnEvent extends EntityEvent{
return $this->entity instanceof Item;
}
}
}

View File

@ -71,4 +71,4 @@ class EntityTeleportEvent extends EntityEvent implements Cancellable{
}
}
}

View File

@ -72,4 +72,4 @@ class ExplosionPrimeEvent extends EntityEvent implements Cancellable{
$this->blockBreaking = $affectsBlocks;
}
}
}

View File

@ -44,4 +44,4 @@ class ItemDespawnEvent extends EntityEvent implements Cancellable{
return $this->entity;
}
}
}

View File

@ -43,4 +43,4 @@ class ItemSpawnEvent extends EntityEvent{
return $this->entity;
}
}
}

View File

@ -43,4 +43,4 @@ class ProjectileHitEvent extends EntityEvent{
return $this->entity;
}
}
}

View File

@ -44,4 +44,4 @@ class ProjectileLaunchEvent extends EntityEvent implements Cancellable{
return $this->entity;
}
}
}

View File

@ -93,4 +93,4 @@ class FurnaceBurnEvent extends BlockEvent implements Cancellable{
public function setBurning(bool $burning){
$this->burning = $burning;
}
}
}

View File

@ -78,4 +78,4 @@ class FurnaceSmeltEvent extends BlockEvent implements Cancellable{
public function setResult(Item $result){
$this->result = $result;
}
}
}

View File

@ -48,4 +48,4 @@ class InventoryCloseEvent extends InventoryEvent{
return $this->who;
}
}
}

View File

@ -52,4 +52,4 @@ abstract class InventoryEvent extends Event{
public function getViewers() : array{
return $this->inventory->getViewers();
}
}
}

View File

@ -49,4 +49,4 @@ class InventoryOpenEvent extends InventoryEvent implements Cancellable{
return $this->who;
}
}
}

View File

@ -49,4 +49,4 @@ class InventoryPickupArrowEvent extends InventoryEvent implements Cancellable{
return $this->arrow;
}
}
}

View File

@ -49,4 +49,4 @@ class InventoryPickupItemEvent extends InventoryEvent implements Cancellable{
return $this->item;
}
}
}

View File

@ -49,4 +49,4 @@ abstract class ChunkEvent extends LevelEvent{
public function getChunk() : Chunk{
return $this->chunk;
}
}
}

View File

@ -47,4 +47,4 @@ class ChunkLoadEvent extends ChunkEvent{
public function isNewChunk() : bool{
return $this->newChunk;
}
}
}

View File

@ -28,4 +28,4 @@ namespace pocketmine\event\level;
*/
class ChunkPopulateEvent extends ChunkEvent{
public static $handlerList = null;
}
}

View File

@ -30,4 +30,4 @@ use pocketmine\event\Cancellable;
*/
class ChunkUnloadEvent extends ChunkEvent implements Cancellable{
public static $handlerList = null;
}
}

View File

@ -46,4 +46,4 @@ abstract class LevelEvent extends Event{
public function getLevel() : Level{
return $this->level;
}
}
}

View File

@ -28,4 +28,4 @@ namespace pocketmine\event\level;
*/
class LevelInitEvent extends LevelEvent{
public static $handlerList = null;
}
}

View File

@ -28,4 +28,4 @@ namespace pocketmine\event\level;
*/
class LevelLoadEvent extends LevelEvent{
public static $handlerList = null;
}
}

View File

@ -28,4 +28,4 @@ namespace pocketmine\event\level;
*/
class LevelSaveEvent extends LevelEvent{
public static $handlerList = null;
}
}

View File

@ -30,4 +30,4 @@ use pocketmine\event\Cancellable;
*/
class LevelUnloadEvent extends LevelEvent implements Cancellable{
public static $handlerList = null;
}
}

View File

@ -51,4 +51,4 @@ class SpawnChangeEvent extends LevelEvent{
public function getPreviousSpawn() : Position{
return $this->previousSpawn;
}
}
}

View File

@ -50,4 +50,4 @@ class PlayerAchievementAwardedEvent extends PlayerEvent implements Cancellable{
public function getAchievement() : string{
return $this->achievement;
}
}
}

View File

@ -57,4 +57,4 @@ class PlayerAnimationEvent extends PlayerEvent implements Cancellable{
return $this->animationType;
}
}
}

View File

@ -45,4 +45,4 @@ class PlayerBedEnterEvent extends PlayerEvent implements Cancellable{
return $this->bed;
}
}
}

View File

@ -44,4 +44,4 @@ class PlayerBedLeaveEvent extends PlayerEvent{
return $this->bed;
}
}
}

View File

@ -56,4 +56,4 @@ class PlayerBlockPickEvent extends PlayerEvent implements Cancellable{
public function setResultItem(Item $item) : void{
$this->resultItem = clone $item;
}
}
}

View File

@ -26,4 +26,4 @@ namespace pocketmine\event\player;
class PlayerBucketEmptyEvent extends PlayerBucketEvent{
public static $handlerList = null;
}
}

View File

@ -25,4 +25,4 @@ namespace pocketmine\event\player;
class PlayerBucketFillEvent extends PlayerBucketEvent{
public static $handlerList = null;
}
}

View File

@ -75,4 +75,4 @@ class PlayerChangeSkinEvent extends PlayerEvent implements Cancellable{
$this->newSkin = $skin;
}
}
}

View File

@ -113,4 +113,4 @@ class PlayerChatEvent extends PlayerEvent implements Cancellable{
public function setRecipients(array $recipients){
$this->recipients = $recipients;
}
}
}

View File

@ -71,4 +71,4 @@ class PlayerCommandPreprocessEvent extends PlayerEvent implements Cancellable{
$this->player = $player;
}
}
}

View File

@ -138,4 +138,4 @@ class PlayerCreationEvent extends Event{
$this->playerClass = $class;
}
}
}

View File

@ -75,4 +75,4 @@ class PlayerDataSaveEvent extends Event implements Cancellable{
public function getPlayer() : IPlayer{
return Server::getInstance()->getOfflinePlayer($this->playerName);
}
}
}

View File

@ -84,4 +84,4 @@ class PlayerDeathEvent extends EntityDeathEvent{
$this->keepInventory = $keepInventory;
}
}
}

View File

@ -52,4 +52,4 @@ class PlayerDropItemEvent extends PlayerEvent implements Cancellable{
return $this->drop;
}
}
}

View File

@ -98,4 +98,4 @@ class PlayerEditBookEvent extends PlayerEvent implements Cancellable{
public function getModifiedPages() : array{
return $this->modifiedPages;
}
}
}

View File

@ -36,4 +36,4 @@ abstract class PlayerEvent extends Event{
public function getPlayer() : Player{
return $this->player;
}
}
}

View File

@ -44,4 +44,4 @@ class PlayerGameModeChangeEvent extends PlayerEvent implements Cancellable{
return $this->gamemode;
}
}
}

View File

@ -52,4 +52,4 @@ class PlayerItemConsumeEvent extends PlayerEvent implements Cancellable{
return clone $this->item;
}
}
}

View File

@ -77,4 +77,4 @@ class PlayerItemHeldEvent extends PlayerEvent implements Cancellable{
public function getItem() : Item{
return $this->item;
}
}
}

View File

@ -60,4 +60,4 @@ class PlayerJoinEvent extends PlayerEvent{
return $this->joinMessage;
}
}
}

View File

@ -70,4 +70,4 @@ class PlayerKickEvent extends PlayerEvent implements Cancellable{
return $this->quitMessage;
}
}
}

View File

@ -58,4 +58,4 @@ class PlayerLoginEvent extends PlayerEvent implements Cancellable{
return $this->kickMessage;
}
}
}

View File

@ -66,4 +66,4 @@ class PlayerMoveEvent extends PlayerEvent implements Cancellable{
public function setTo(Location $to){
$this->to = $to;
}
}
}

View File

@ -58,4 +58,4 @@ class PlayerPreLoginEvent extends PlayerEvent implements Cancellable{
return $this->kickMessage;
}
}
}

View File

@ -57,4 +57,4 @@ class PlayerRespawnEvent extends PlayerEvent{
public function setRespawnPosition(Position $position){
$this->position = $position;
}
}
}

View File

@ -48,4 +48,4 @@ class PlayerToggleFlightEvent extends PlayerEvent implements Cancellable{
return $this->isFlying;
}
}
}

View File

@ -48,4 +48,4 @@ class PlayerToggleSneakEvent extends PlayerEvent implements Cancellable{
return $this->isSneaking;
}
}
}

View File

@ -48,4 +48,4 @@ class PlayerToggleSprintEvent extends PlayerEvent implements Cancellable{
return $this->isSprinting;
}
}
}

View File

@ -90,4 +90,4 @@ class PlayerTransferEvent extends PlayerEvent implements Cancellable{
public function setMessage(string $message){
$this->message = $message;
}
}
}

View File

@ -30,4 +30,4 @@ use pocketmine\event\player\PlayerEvent;
abstract class PlayerCheatEvent extends PlayerEvent{
}
}

View File

@ -74,4 +74,4 @@ class PlayerIllegalMoveEvent extends PlayerCheatEvent implements Cancellable{
public function getExpectedPosition() : Vector3{
return $this->expectedPosition;
}
}
}

View File

@ -57,4 +57,4 @@ class DataPacketReceiveEvent extends ServerEvent implements Cancellable{
public function getPlayer() : Player{
return $this->player;
}
}
}

View File

@ -57,4 +57,4 @@ class DataPacketSendEvent extends ServerEvent implements Cancellable{
public function getPlayer() : Player{
return $this->player;
}
}
}

View File

@ -92,4 +92,4 @@ class LowMemoryEvent extends ServerEvent{
return $this->getMemory() - ($this->isGlobal() ? Utils::getMemoryUsage(true)[1] : Utils::getMemoryUsage(true)[0]);
}
}
}

View File

@ -47,4 +47,4 @@ class NetworkInterfaceCrashEvent extends NetworkInterfaceEvent{
public function getCrashInformation() : \Throwable{
return $this->exception;
}
}
}

View File

@ -42,4 +42,4 @@ class NetworkInterfaceEvent extends ServerEvent{
public function getInterface() : SourceInterface{
return $this->interface;
}
}
}

View File

@ -31,4 +31,4 @@ use pocketmine\event\Cancellable;
class NetworkInterfaceRegisterEvent extends NetworkInterfaceEvent implements Cancellable{
public static $handlerList = null;
}
}

View File

@ -29,4 +29,4 @@ namespace pocketmine\event\server;
class NetworkInterfaceUnregisterEvent extends NetworkInterfaceEvent{
public static $handlerList = null;
}
}

View File

@ -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";
}
}
}

View File

@ -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