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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
600 changed files with 600 additions and 600 deletions

View File

@ -257,4 +257,4 @@ class CrashDump{
fwrite($this->fp, $str); fwrite($this->fp, $str);
} }
} }

View File

@ -89,4 +89,4 @@ class ThreadManager extends \Volatile{
return $erroredThreads; return $erroredThreads;
} }
} }

View File

@ -82,4 +82,4 @@ class Air extends Transparent{
return 0; return 0;
} }
} }

View File

@ -115,4 +115,4 @@ class Anvil extends Fallable{
ItemFactory::get($this->getItemId(), $this->getDamage() & 0x0c) ItemFactory::get($this->getItemId(), $this->getDamage() & 0x0c)
]; ];
} }
} }

View File

@ -49,4 +49,4 @@ class Bedrock extends Solid{
return false; return false;
} }
} }

View File

@ -54,4 +54,4 @@ class Beetroot extends Crops{
public function getPickedItem() : Item{ public function getPickedItem() : Item{
return ItemFactory::get(Item::BEETROOT_SEEDS); return ItemFactory::get(Item::BEETROOT_SEEDS);
} }
} }

View File

@ -417,4 +417,4 @@ class BlockFactory{
$b = self::$list[$id]; $b = self::$list[$id];
return $b !== null and !($b instanceof UnknownBlock); return $b !== null and !($b instanceof UnknownBlock);
} }
} }

View File

@ -36,4 +36,4 @@ interface BlockToolType{
public const TYPE_AXE = 1 << 3; public const TYPE_AXE = 1 << 3;
public const TYPE_SHEARS = 1 << 4; public const TYPE_SHEARS = 1 << 4;
} }

View File

@ -61,4 +61,4 @@ class BoneBlock extends Solid{
public function getVariantBitmask() : int{ public function getVariantBitmask() : int{
return 0x03; return 0x03;
} }
} }

View File

@ -56,4 +56,4 @@ class Bookshelf extends Solid{
return 300; return 300;
} }
} }

View File

@ -54,4 +54,4 @@ class BrewingStand extends Transparent{
} }
//TODO //TODO
} }

View File

@ -53,4 +53,4 @@ class BrickStairs extends Stair{
return "Brick Stairs"; return "Brick Stairs";
} }
} }

View File

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

View File

@ -34,4 +34,4 @@ class BrownMushroom extends RedMushroom{
public function getLightLevel() : int{ public function getLightLevel() : int{
return 1; return 1;
} }
} }

View File

@ -38,4 +38,4 @@ class BrownMushroomBlock extends RedMushroomBlock{
Item::get(Item::BROWN_MUSHROOM, 0, mt_rand(0, 2)) Item::get(Item::BROWN_MUSHROOM, 0, mt_rand(0, 2))
]; ];
} }
} }

View File

@ -94,4 +94,4 @@ class BurningFurnace extends Solid{
public function getVariantBitmask() : int{ public function getVariantBitmask() : int{
return 0; return 0;
} }
} }

View File

@ -48,4 +48,4 @@ abstract class Button extends Flowable{
//TODO //TODO
return true; return true;
} }
} }

View File

@ -132,4 +132,4 @@ class Cactus extends Transparent{
public function getVariantBitmask() : int{ public function getVariantBitmask() : int{
return 0; return 0;
} }
} }

View File

@ -85,4 +85,4 @@ class Carpet extends Flowable{
return false; return false;
} }
} }

View File

@ -47,4 +47,4 @@ class Carrot extends Crops{
public function getPickedItem() : Item{ public function getPickedItem() : Item{
return ItemFactory::get(Item::CARROT); return ItemFactory::get(Item::CARROT);
} }
} }

View File

@ -143,4 +143,4 @@ class Chest extends Transparent{
public function getFuelTime() : int{ public function getFuelTime() : int{
return 300; return 300;
} }
} }

View File

@ -51,4 +51,4 @@ class Clay extends Solid{
ItemFactory::get(Item::CLAY_BALL, 0, 4) ItemFactory::get(Item::CLAY_BALL, 0, 4)
]; ];
} }
} }

View File

@ -52,4 +52,4 @@ class Coal extends Solid{
public function getFuelTime() : int{ public function getFuelTime() : int{
return 16000; return 16000;
} }
} }

View File

@ -57,4 +57,4 @@ class CoalOre extends Solid{
]; ];
} }
} }

View File

@ -48,4 +48,4 @@ class Cobblestone extends Solid{
public function getHardness() : float{ public function getHardness() : float{
return 2; return 2;
} }
} }

View File

@ -49,4 +49,4 @@ class CobblestoneStairs extends Stair{
return "Cobblestone Stairs"; return "Cobblestone Stairs";
} }
} }

View File

@ -68,4 +68,4 @@ class Cobweb extends Flowable{
public function diffusesSkyLight() : bool{ public function diffusesSkyLight() : bool{
return true; return true;
} }
} }

View File

@ -49,4 +49,4 @@ class Concrete extends Solid{
public function getToolHarvestLevel() : int{ public function getToolHarvestLevel() : int{
return TieredTool::TIER_WOODEN; return TieredTool::TIER_WOODEN;
} }
} }

View File

@ -74,4 +74,4 @@ class ConcretePowder extends Fallable{
return null; return null;
} }
} }

View File

@ -58,4 +58,4 @@ class CraftingTable extends Solid{
public function getFuelTime() : int{ public function getFuelTime() : int{
return 300; return 300;
} }
} }

View File

@ -95,4 +95,4 @@ abstract class Crops extends Flowable{
return false; return false;
} }
} }

View File

@ -63,4 +63,4 @@ class Dandelion extends Flowable{
return false; return false;
} }
} }

View File

@ -69,4 +69,4 @@ class DeadBush extends Flowable{
return parent::getDrops($item); return parent::getDrops($item);
} }
} }

View File

@ -48,4 +48,4 @@ class Diamond extends Solid{
public function getToolHarvestLevel() : int{ public function getToolHarvestLevel() : int{
return TieredTool::TIER_IRON; return TieredTool::TIER_IRON;
} }
} }

View File

@ -56,4 +56,4 @@ class DiamondOre extends Solid{
ItemFactory::get(Item::DIAMOND) ItemFactory::get(Item::DIAMOND)
]; ];
} }
} }

View File

@ -63,4 +63,4 @@ class Dirt extends Solid{
return false; return false;
} }
} }

View File

@ -286,4 +286,4 @@ abstract class Door extends Transparent{
public function getVariantBitmask() : int{ public function getVariantBitmask() : int{
return 0; return 0;
} }
} }

View File

@ -132,4 +132,4 @@ class DoublePlant extends Flowable{
return []; return [];
} }
} }

View File

@ -44,4 +44,4 @@ abstract class DoubleSlab extends Solid{
]; ];
} }
} }

View File

@ -44,4 +44,4 @@ class DoubleStoneSlab extends DoubleSlab{
public function getToolHarvestLevel() : int{ public function getToolHarvestLevel() : int{
return TieredTool::TIER_WOODEN; return TieredTool::TIER_WOODEN;
} }
} }

View File

@ -31,4 +31,4 @@ class DoubleStoneSlab2 extends DoubleStoneSlab{
return self::STONE_SLAB2; return self::STONE_SLAB2;
} }
} }

View File

@ -38,4 +38,4 @@ class DoubleWoodenSlab extends DoubleSlab{
public function getToolType() : int{ public function getToolType() : int{
return BlockToolType::TYPE_AXE; return BlockToolType::TYPE_AXE;
} }
} }

View File

@ -48,4 +48,4 @@ class Emerald extends Solid{
public function getName() : string{ public function getName() : string{
return "Emerald Block"; return "Emerald Block";
} }
} }

View File

@ -56,4 +56,4 @@ class EmeraldOre extends Solid{
ItemFactory::get(Item::EMERALD) ItemFactory::get(Item::EMERALD)
]; ];
} }
} }

View File

@ -76,4 +76,4 @@ class EnchantingTable extends Transparent{
return true; return true;
} }
} }

View File

@ -65,4 +65,4 @@ class EndPortalFrame extends Solid{
$this->z + 1 $this->z + 1
); );
} }
} }

View File

@ -101,4 +101,4 @@ class EndRod extends Flowable{
public function getVariantBitmask() : int{ public function getVariantBitmask() : int{
return 0; return 0;
} }
} }

View File

@ -48,4 +48,4 @@ class EndStone extends Solid{
public function getHardness() : float{ public function getHardness() : float{
return 3; return 3;
} }
} }

View File

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

View File

@ -111,4 +111,4 @@ class EnderChest extends Chest{
return 0; return 0;
} }
} }

View File

@ -54,4 +54,4 @@ abstract class Fallable extends Solid{
public function tickFalling() : ?Block{ public function tickFalling() : ?Block{
return null; return null;
} }
} }

View File

@ -112,4 +112,4 @@ class Farmland extends Transparent{
ItemFactory::get(Item::DIRT) ItemFactory::get(Item::DIRT)
]; ];
} }
} }

View File

@ -114,4 +114,4 @@ class Fire extends Flowable{
return false; return false;
} }
} }

View File

@ -42,4 +42,4 @@ abstract class Flowable extends Transparent{
protected function recalculateBoundingBox() : ?AxisAlignedBB{ protected function recalculateBoundingBox() : ?AxisAlignedBB{
return null; return null;
} }
} }

View File

@ -82,4 +82,4 @@ class Flower extends Flowable{
return false; return false;
} }
} }

View File

@ -110,4 +110,4 @@ class FlowerPot extends Flowable{
return $items; return $items;
} }
} }

View File

@ -35,4 +35,4 @@ class Furnace extends BurningFurnace{
public function getLightLevel() : int{ public function getLightLevel() : int{
return 0; return 0;
} }
} }

View File

@ -44,4 +44,4 @@ class Glass extends Transparent{
public function getDropsForCompatibleTool(Item $item) : array{ public function getDropsForCompatibleTool(Item $item) : array{
return []; return [];
} }
} }

View File

@ -44,4 +44,4 @@ class GlassPane extends Thin{
public function getDropsForCompatibleTool(Item $item) : array{ public function getDropsForCompatibleTool(Item $item) : array{
return []; return [];
} }
} }

View File

@ -60,4 +60,4 @@ class GlazedTerracotta extends Solid{
public function getVariantBitmask() : int{ public function getVariantBitmask() : int{
return 0; return 0;
} }
} }

View File

@ -57,4 +57,4 @@ class GlowingObsidian extends Solid{
public function getToolHarvestLevel() : int{ public function getToolHarvestLevel() : int{
return TieredTool::TIER_DIAMOND; return TieredTool::TIER_DIAMOND;
} }
} }

View File

@ -46,4 +46,4 @@ class GlowingRedstoneOre extends RedstoneOre{
return false; return false;
} }
} }

View File

@ -55,4 +55,4 @@ class Glowstone extends Transparent{
ItemFactory::get(Item::GLOWSTONE_DUST, 0, mt_rand(2, 4)) ItemFactory::get(Item::GLOWSTONE_DUST, 0, mt_rand(2, 4))
]; ];
} }
} }

View File

@ -48,4 +48,4 @@ class Gold extends Solid{
public function getToolHarvestLevel() : int{ public function getToolHarvestLevel() : int{
return TieredTool::TIER_IRON; return TieredTool::TIER_IRON;
} }
} }

View File

@ -48,4 +48,4 @@ class GoldOre extends Solid{
public function getToolHarvestLevel() : int{ public function getToolHarvestLevel() : int{
return TieredTool::TIER_IRON; return TieredTool::TIER_IRON;
} }
} }

View File

@ -74,4 +74,4 @@ class GrassPath extends Transparent{
ItemFactory::get(Item::DIRT) ItemFactory::get(Item::DIRT)
]; ];
} }
} }

View File

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

View File

@ -48,4 +48,4 @@ class HardenedClay extends Solid{
public function getHardness() : float{ public function getHardness() : float{
return 1.25; return 1.25;
} }
} }

View File

@ -54,4 +54,4 @@ class HayBale extends Solid{
public function getVariantBitmask() : int{ public function getVariantBitmask() : int{
return 0x03; return 0x03;
} }
} }

View File

@ -77,4 +77,4 @@ class Ice extends Transparent{
public function getDropsForCompatibleTool(Item $item) : array{ public function getDropsForCompatibleTool(Item $item) : array{
return []; return [];
} }
} }

View File

@ -48,4 +48,4 @@ class Iron extends Solid{
public function getHardness() : float{ public function getHardness() : float{
return 5; return 5;
} }
} }

View File

@ -51,4 +51,4 @@ class IronDoor extends Door{
public function getHardness() : float{ public function getHardness() : float{
return 5; return 5;
} }
} }

View File

@ -48,4 +48,4 @@ class IronOre extends Solid{
public function getHardness() : float{ public function getHardness() : float{
return 3; return 3;
} }
} }

View File

@ -112,4 +112,4 @@ class ItemFrame extends Flowable{
return $drops; return $drops;
} }
} }

View File

@ -127,4 +127,4 @@ class Ladder extends Transparent{
public function getVariantBitmask() : int{ public function getVariantBitmask() : int{
return 0; return 0;
} }
} }

View File

@ -48,4 +48,4 @@ class Lapis extends Solid{
public function getHardness() : float{ public function getHardness() : float{
return 3; return 3;
} }
} }

View File

@ -57,4 +57,4 @@ class LapisOre extends Solid{
]; ];
} }
} }

View File

@ -195,4 +195,4 @@ class Leaves extends Transparent{
public function canDropApples() : bool{ public function canDropApples() : bool{
return $this->meta === self::OAK; return $this->meta === self::OAK;
} }
} }

View File

@ -46,4 +46,4 @@ class Leaves2 extends Leaves{
public function canDropApples() : bool{ public function canDropApples() : bool{
return $this->meta === self::DARK_OAK; return $this->meta === self::DARK_OAK;
} }
} }

View File

@ -438,4 +438,4 @@ abstract class Liquid extends Transparent{
protected function canFlowInto(Block $block) : bool{ protected function canFlowInto(Block $block) : bool{
return $block->canBeFlowedInto() and !($block instanceof Liquid and $block->meta === 0); //TODO: I think this should only be liquids of the same type return $block->canBeFlowedInto() and !($block instanceof Liquid and $block->meta === 0); //TODO: I think this should only be liquids of the same type
} }
} }

View File

@ -34,4 +34,4 @@ class LitPumpkin extends Pumpkin{
public function getName() : string{ public function getName() : string{
return "Jack o'Lantern"; return "Jack o'Lantern";
} }
} }

View File

@ -66,4 +66,4 @@ class Magma extends Solid{
$entity->attack($ev); $entity->attack($ev);
} }
} }
} }

View File

@ -51,4 +51,4 @@ class Melon extends Transparent{
ItemFactory::get(Item::MELON_SLICE, 0, mt_rand(3, 7)) ItemFactory::get(Item::MELON_SLICE, 0, mt_rand(3, 7))
]; ];
} }
} }

View File

@ -92,4 +92,4 @@ class MelonStem extends Crops{
public function getPickedItem() : Item{ public function getPickedItem() : Item{
return ItemFactory::get(Item::MELON_SEEDS); return ItemFactory::get(Item::MELON_SEEDS);
} }
} }

View File

@ -53,4 +53,4 @@ class MonsterSpawner extends Transparent{
public function getDropsForCompatibleTool(Item $item) : array{ public function getDropsForCompatibleTool(Item $item) : array{
return []; return [];
} }
} }

View File

@ -31,4 +31,4 @@ class MossyCobblestone extends Cobblestone{
public function getName() : string{ public function getName() : string{
return "Moss Stone"; return "Moss Stone";
} }
} }

View File

@ -38,4 +38,4 @@ class NetherBrick extends Solid{
public function getHardness() : float{ public function getHardness() : float{
return 2; return 2;
} }
} }

View File

@ -49,4 +49,4 @@ class NetherBrickStairs extends Stair{
return TieredTool::TIER_WOODEN; return TieredTool::TIER_WOODEN;
} }
} }

View File

@ -57,4 +57,4 @@ class NetherQuartzOre extends Solid{
]; ];
} }
} }

View File

@ -62,4 +62,4 @@ class NetherReactor extends Solid{
]; ];
} }
} }

View File

@ -38,4 +38,4 @@ class NetherWartBlock extends Solid{
public function getHardness() : float{ public function getHardness() : float{
return 1; return 1;
} }
} }

View File

@ -90,4 +90,4 @@ class NetherWartPlant extends Flowable{
ItemFactory::get($this->getItemId(), 0, ($this->getDamage() === 3 ? mt_rand(2, 4) : 1)) ItemFactory::get($this->getItemId(), 0, ($this->getDamage() === 3 ? mt_rand(2, 4) : 1))
]; ];
} }
} }

View File

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

View File

@ -52,4 +52,4 @@ class Obsidian extends Solid{
public function getBlastResistance() : float{ public function getBlastResistance() : float{
return 6000; return 6000;
} }
} }

View File

@ -47,4 +47,4 @@ class PackedIce extends Solid{
return BlockToolType::TYPE_PICKAXE; return BlockToolType::TYPE_PICKAXE;
} }
} }

View File

@ -42,4 +42,4 @@ class Podzol extends Solid{
public function getHardness() : float{ public function getHardness() : float{
return 2.5; return 2.5;
} }
} }

View File

@ -47,4 +47,4 @@ class Potato extends Crops{
public function getPickedItem() : Item{ public function getPickedItem() : Item{
return ItemFactory::get(Item::POTATO); return ItemFactory::get(Item::POTATO);
} }
} }

View File

@ -61,4 +61,4 @@ class Prismarine extends Solid{
public function getVariantBitmask() : int{ public function getVariantBitmask() : int{
return 0x03; return 0x03;
} }
} }

View File

@ -59,4 +59,4 @@ class Pumpkin extends Solid{
public function getVariantBitmask() : int{ public function getVariantBitmask() : int{
return 0; return 0;
} }
} }

View File

@ -92,4 +92,4 @@ class PumpkinStem extends Crops{
public function getPickedItem() : Item{ public function getPickedItem() : Item{
return ItemFactory::get(Item::PUMPKIN_SEEDS); return ItemFactory::get(Item::PUMPKIN_SEEDS);
} }
} }

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