Strip empty lines at the end of classes

This commit is contained in:
Dylan K. Taylor 2018-06-11 13:19:23 +01:00
parent b3ea9606c7
commit 05af87e1d4
185 changed files with 0 additions and 199 deletions

View File

@ -147,6 +147,4 @@ abstract class Achievement{
return false;
}
}

View File

@ -258,5 +258,4 @@ class CrashDump{
public function add($str){
fwrite($this->fp, $str);
}
}

View File

@ -134,6 +134,4 @@ class OfflinePlayer implements IPlayer, Metadatable{
public function removeMetadata(string $metadataKey, Plugin $owningPlugin){
$this->server->getPlayerMetadata()->removeMetadata($this, $metadataKey, $owningPlugin);
}
}

View File

@ -81,5 +81,4 @@ class Air extends Transparent{
public function getBlastResistance() : float{
return 0;
}
}

View File

@ -48,5 +48,4 @@ class Bedrock extends Solid{
public function isBreakable(Item $item) : bool{
return false;
}
}

View File

@ -52,5 +52,4 @@ class BrickStairs extends Stair{
public function getName() : string{
return "Brick Stairs";
}
}

View File

@ -48,5 +48,4 @@ class CobblestoneStairs extends Stair{
public function getName() : string{
return "Cobblestone Stairs";
}
}

View File

@ -90,5 +90,4 @@ class CobblestoneWall extends Transparent{
public function canConnect(Block $block){
return $block instanceof static or $block instanceof FenceGate or ($block->isSolid() and !$block->isTransparent());
}
}

View File

@ -30,5 +30,4 @@ class DoubleStoneSlab2 extends DoubleStoneSlab{
public function getSlabId() : int{
return self::STONE_SLAB2;
}
}

View File

@ -106,5 +106,4 @@ class EnderChest extends Chest{
public function getFuelTime() : int{
return 0;
}
}

View File

@ -105,5 +105,4 @@ abstract class Fence extends Transparent{
public function canConnect(Block $block){
return $block instanceof static or $block instanceof FenceGate or ($block->isSolid() and !$block->isTransparent());
}
}

View File

@ -55,5 +55,4 @@ class Gravel extends Fallable{
return parent::getDropsForCompatibleTool($item);
}
}

View File

@ -121,5 +121,4 @@ class Lava extends Liquid{
return $ret;
}
}

View File

@ -48,5 +48,4 @@ class NetherBrickStairs extends Stair{
public function getToolHarvestLevel() : int{
return TieredTool::TIER_WOODEN;
}
}

View File

@ -61,5 +61,4 @@ class NetherReactor extends Solid{
ItemFactory::get(Item::DIAMOND, 0, 3)
];
}
}

View File

@ -46,5 +46,4 @@ class PackedIce extends Solid{
public function getToolType() : int{
return BlockToolType::TYPE_PICKAXE;
}
}

View File

@ -48,5 +48,4 @@ class QuartzStairs extends Stair{
public function getName() : string{
return "Quartz Stairs";
}
}

View File

@ -50,5 +50,4 @@ class RedMushroomBlock extends Solid{
Item::get(Item::RED_MUSHROOM, 0, mt_rand(0, 2))
];
}
}

View File

@ -30,5 +30,4 @@ class RedSandstoneStairs extends SandstoneStairs{
public function getName() : string{
return "Red " . parent::getName();
}
}

View File

@ -46,5 +46,4 @@ class Sand extends Fallable{
return "Sand";
}
}

View File

@ -48,5 +48,4 @@ class SandstoneStairs extends Stair{
public function getName() : string{
return "Sandstone Stairs";
}
}

View File

@ -51,5 +51,4 @@ class SeaLantern extends Transparent{
ItemFactory::get(Item::PRISMARINE_CRYSTALS, 0, 3)
];
}
}

View File

@ -56,5 +56,4 @@ class Snow extends Solid{
ItemFactory::get(Item::SNOWBALL, 0, 4)
];
}
}

View File

@ -56,5 +56,4 @@ class SoulSand extends Solid{
$this->z + 1
);
}
}

View File

@ -39,5 +39,4 @@ class Sponge extends Solid{
public function getName() : string{
return "Sponge";
}
}

View File

@ -32,5 +32,4 @@ class StainedGlass extends Glass{
public function getName() : string{
return ColorBlockMetaHelper::getColorFromMeta($this->meta) . " Stained Glass";
}
}

View File

@ -32,5 +32,4 @@ class StainedGlassPane extends GlassPane{
public function getName() : string{
return ColorBlockMetaHelper::getColorFromMeta($this->meta) . " Stained Glass Pane";
}
}

View File

@ -30,5 +30,4 @@ class StillLava extends Lava{
public function getName() : string{
return "Still Lava";
}
}

View File

@ -76,5 +76,4 @@ class Stone extends Solid{
return parent::getDropsForCompatibleTool($item);
}
}

View File

@ -48,5 +48,4 @@ class StoneBrickStairs extends Stair{
public function getName() : string{
return "Stone Brick Stairs";
}
}

View File

@ -145,5 +145,4 @@ class ConsoleCommandSender implements CommandSender{
}
$this->lineHeight = $height;
}
}

View File

@ -154,5 +154,4 @@ class FormattedCommandAlias extends Command{
private static function inRange(int $i, int $j, int $k) : bool{
return $i >= $j and $i <= $k;
}
}

View File

@ -47,6 +47,4 @@ class RemoteConsoleCommandSender extends ConsoleCommandSender{
public function getName() : string{
return "Rcon";
}
}

View File

@ -345,6 +345,4 @@ class SimpleCommandMap implements CommandMap{
}
}
}

View File

@ -99,5 +99,4 @@ class HelpCommand extends VanillaCommand{
return true;
}
}
}

View File

@ -2122,5 +2122,4 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
public function __toString(){
return (new \ReflectionClass($this))->getShortName() . "(" . $this->getId() . ")";
}
}

View File

@ -99,5 +99,4 @@ class Skin{
$this->geometryData = (string) json_encode(json_decode($this->geometryData));
}
}
}

View File

@ -44,5 +44,4 @@ class BlockGrowEvent extends BlockEvent implements Cancellable{
public function getNewState() : Block{
return $this->newState;
}
}

View File

@ -43,5 +43,4 @@ class BlockSpreadEvent extends BlockFormEvent{
public function getSource() : Block{
return $this->source;
}
}

View File

@ -55,5 +55,4 @@ class EntityBlockChangeEvent extends EntityEvent implements Cancellable{
public function getTo() : Block{
return $this->to;
}
}

View File

@ -46,5 +46,4 @@ class EntityCombustByBlockEvent extends EntityCombustEvent{
public function getCombuster() : Block{
return $this->combuster;
}
}

View File

@ -45,5 +45,4 @@ class EntityCombustByEntityEvent extends EntityCombustEvent{
public function getCombuster() : Entity{
return $this->combuster;
}
}

View File

@ -49,5 +49,4 @@ class EntityCombustEvent extends EntityEvent implements Cancellable{
public function setDuration(int $duration){
$this->duration = $duration;
}
}

View File

@ -51,6 +51,4 @@ class EntityDamageByBlockEvent extends EntityDamageEvent{
public function getDamager() : Block{
return $this->damager;
}
}

View File

@ -53,6 +53,4 @@ class EntityDamageByChildEntityEvent extends EntityDamageByEntityEvent{
public function getChild(){
return $this->getEntity()->getLevel()->getServer()->findEntity($this->childEntityEid, $this->getEntity()->getLevel());
}
}

View File

@ -59,5 +59,4 @@ class EntityDeathEvent extends EntityEvent{
public function setDrops(array $drops){
$this->drops = $drops;
}
}

View File

@ -86,5 +86,4 @@ class EntityDespawnEvent extends EntityEvent{
public function isItem() : bool{
return $this->entity instanceof ItemEntity;
}
}

View File

@ -65,5 +65,4 @@ class EntityEffectAddEvent extends EntityEffectEvent{
public function getOldEffect(){
return $this->oldEffect;
}
}

View File

@ -33,5 +33,4 @@ class EntityEffectRemoveEvent extends EntityEffectEvent{
}
parent::setCancelled($value);
}
}

View File

@ -90,5 +90,4 @@ class EntityExplodeEvent extends EntityEvent implements Cancellable{
public function setYield(float $yield){
$this->yield = $yield;
}
}

View File

@ -75,6 +75,4 @@ class EntityInventoryChangeEvent extends EntityEvent implements Cancellable{
public function getOldItem() : Item{
return $this->oldItem;
}
}

View File

@ -42,6 +42,4 @@ class EntityMotionEvent extends EntityEvent implements Cancellable{
public function getVector() : Vector3{
return $this->mot;
}
}

View File

@ -71,5 +71,4 @@ class EntityRegainHealthEvent extends EntityEvent implements Cancellable{
public function getRegainReason() : int{
return $this->reason;
}
}

View File

@ -100,6 +100,4 @@ class EntityShootBowEvent extends EntityEvent implements Cancellable{
public function setForce(float $force){
$this->force = $force;
}
}

View File

@ -94,5 +94,4 @@ class EntitySpawnEvent extends EntityEvent{
public function isItem() : bool{
return $this->entity instanceof ItemEntity;
}
}

View File

@ -59,6 +59,4 @@ class EntityTeleportEvent extends EntityEvent implements Cancellable{
public function setTo(Position $to){
$this->to = $to;
}
}

View File

@ -69,5 +69,4 @@ class ExplosionPrimeEvent extends EntityEvent implements Cancellable{
public function setBlockBreaking(bool $affectsBlocks){
$this->blockBreaking = $affectsBlocks;
}
}

View File

@ -42,5 +42,4 @@ class ItemDespawnEvent extends EntityEvent implements Cancellable{
public function getEntity(){
return $this->entity;
}
}

View File

@ -41,5 +41,4 @@ class ItemSpawnEvent extends EntityEvent{
public function getEntity(){
return $this->entity;
}
}

View File

@ -41,5 +41,4 @@ class ProjectileLaunchEvent extends EntityEvent implements Cancellable{
public function getEntity(){
return $this->entity;
}
}

View File

@ -45,5 +45,4 @@ class InventoryCloseEvent extends InventoryEvent{
public function getPlayer() : Player{
return $this->who;
}
}

View File

@ -46,5 +46,4 @@ class InventoryOpenEvent extends InventoryEvent implements Cancellable{
public function getPlayer() : Player{
return $this->who;
}
}

View File

@ -46,5 +46,4 @@ class InventoryPickupArrowEvent extends InventoryEvent implements Cancellable{
public function getArrow() : Arrow{
return $this->arrow;
}
}

View File

@ -46,5 +46,4 @@ class InventoryPickupItemEvent extends InventoryEvent implements Cancellable{
public function getItem() : ItemEntity{
return $this->item;
}
}

View File

@ -48,5 +48,4 @@ class InventoryTransactionEvent extends Event implements Cancellable{
public function getTransaction() : InventoryTransaction{
return $this->transaction;
}
}

View File

@ -48,5 +48,4 @@ class PlayerAnimationEvent extends PlayerEvent implements Cancellable{
public function getAnimationType() : int{
return $this->animationType;
}
}

View File

@ -42,5 +42,4 @@ class PlayerBedEnterEvent extends PlayerEvent implements Cancellable{
public function getBed() : Block{
return $this->bed;
}
}

View File

@ -41,5 +41,4 @@ class PlayerBedLeaveEvent extends PlayerEvent{
public function getBed() : Block{
return $this->bed;
}
}

View File

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

View File

@ -68,5 +68,4 @@ class PlayerCommandPreprocessEvent extends PlayerEvent implements Cancellable{
public function setPlayer(Player $player){
$this->player = $player;
}
}

View File

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

View File

@ -81,5 +81,4 @@ class PlayerDeathEvent extends EntityDeathEvent{
public function setKeepInventory(bool $keepInventory){
$this->keepInventory = $keepInventory;
}
}

View File

@ -49,5 +49,4 @@ class PlayerDropItemEvent extends PlayerEvent implements Cancellable{
public function getItem() : Item{
return $this->drop;
}
}

View File

@ -41,5 +41,4 @@ class PlayerGameModeChangeEvent extends PlayerEvent implements Cancellable{
public function getNewGamemode() : int{
return $this->gamemode;
}
}

View File

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

View File

@ -57,5 +57,4 @@ class PlayerJoinEvent extends PlayerEvent{
public function getJoinMessage(){
return $this->joinMessage;
}
}

View File

@ -38,5 +38,4 @@ class PlayerJumpEvent extends PlayerEvent{
public function __construct(Player $player){
$this->player = $player;
}
}

View File

@ -67,5 +67,4 @@ class PlayerKickEvent extends PlayerEvent implements Cancellable{
public function getQuitMessage(){
return $this->quitMessage;
}
}

View File

@ -55,5 +55,4 @@ class PlayerLoginEvent extends PlayerEvent implements Cancellable{
public function getKickMessage() : string{
return $this->kickMessage;
}
}

View File

@ -55,5 +55,4 @@ class PlayerPreLoginEvent extends PlayerEvent implements Cancellable{
public function getKickMessage() : string{
return $this->kickMessage;
}
}

View File

@ -45,5 +45,4 @@ class PlayerToggleFlightEvent extends PlayerEvent implements Cancellable{
public function isFlying() : bool{
return $this->isFlying;
}
}

View File

@ -45,5 +45,4 @@ class PlayerToggleSneakEvent extends PlayerEvent implements Cancellable{
public function isSneaking() : bool{
return $this->isSneaking;
}
}

View File

@ -45,5 +45,4 @@ class PlayerToggleSprintEvent extends PlayerEvent implements Cancellable{
public function isSprinting() : bool{
return $this->isSprinting;
}
}

View File

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

View File

@ -278,5 +278,4 @@ class QueryRegenerateEvent extends ServerEvent{
public function getShortQuery() : string{
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

@ -37,5 +37,4 @@ class RemoteServerCommandEvent extends ServerCommandEvent{
public function __construct(CommandSender $sender, string $command){
parent::__construct($sender, $command);
}
}

View File

@ -70,5 +70,4 @@ class ServerCommandEvent extends ServerEvent implements Cancellable{
public function setCommand(string $command){
$this->command = $command;
}
}

View File

@ -291,5 +291,4 @@ class CraftingManager{
public function registerRecipe(Recipe $recipe) : void{
$recipe->registerToCraftingManager($this);
}
}

View File

@ -65,5 +65,4 @@ class EnderChestInventory extends ChestInventory{
public function getHolder(){
return $this->holder;
}
}

View File

@ -40,5 +40,4 @@ class MultiRecipe{
public function __construct(UUID $uuid){
$this->uuid = $uuid;
}
}

View File

@ -81,5 +81,4 @@ class CreativeInventoryAction extends InventoryAction{
public function onExecuteFail(Player $source) : void{
}
}

View File

@ -27,5 +27,4 @@ class Arrow extends Item{
public function __construct(int $meta = 0){
parent::__construct(self::ARROW, $meta, "Arrow");
}
}

View File

@ -32,5 +32,4 @@ class BlazeRod extends Item{
public function getFuelTime() : int{
return 2400;
}
}

View File

@ -27,5 +27,4 @@ class Book extends Item{
public function __construct(int $meta = 0){
parent::__construct(self::BOOK, $meta, "Book");
}
}

View File

@ -27,5 +27,4 @@ class Clock extends Item{
public function __construct(int $meta = 0){
parent::__construct(self::CLOCK, $meta, "Clock");
}
}

View File

@ -35,5 +35,4 @@ class Coal extends Item{
public function getFuelTime() : int{
return 1600;
}
}

View File

@ -27,5 +27,4 @@ class Compass extends Item{
public function __construct(int $meta = 0){
parent::__construct(self::COMPASS, $meta, "Compass");
}
}

View File

@ -965,5 +965,4 @@ class Item implements ItemIds, \JsonSerializable{
public function __clone(){
$this->cachedNBT = null;
}
}

View File

@ -54,5 +54,4 @@ class ItemBlock extends Item{
public function getFuelTime() : int{
return $this->getBlock()->getFuelTime();
}
}

View File

@ -49,5 +49,4 @@ class RottenFlesh extends Food{
return [];
}
}

Some files were not shown because too many files have changed in this diff Show More