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

@ -111,4 +111,4 @@ interface ChunkLoader{
*/
public function onBlockChanged(Vector3 $block);
}
}

View File

@ -149,4 +149,4 @@ interface ChunkManager{
* @return bool
*/
public function isInWorld(float $x, float $y, float $z) : bool;
}
}

View File

@ -27,4 +27,4 @@ use pocketmine\utils\ServerException;
class LevelException extends ServerException{
}
}

View File

@ -179,4 +179,4 @@ class SimpleChunkManager implements ChunkManager{
$z <= INT32_MAX and $z >= INT32_MIN
);
}
}
}

View File

@ -89,4 +89,4 @@ class WeakPosition extends Position{
public function __toString(){
return "Weak" . parent::__toString();
}
}
}

View File

@ -25,4 +25,4 @@ namespace pocketmine\level\format;
class ChunkException extends \RuntimeException{
}
}

View File

@ -120,4 +120,4 @@ class EmptySubChunk implements SubChunkInterface{
public function fastSerialize() : string{
throw new \BadMethodCallException("Should not try to serialize empty subchunks");
}
}
}

View File

@ -242,4 +242,4 @@ class SubChunk implements SubChunkInterface{
public function __debugInfo(){
return [];
}
}
}

View File

@ -206,4 +206,4 @@ interface SubChunkInterface{
* @return string
*/
public function fastSerialize() : string;
}
}

View File

@ -94,4 +94,4 @@ class ChunkRequestTask extends AsyncTask{
}
}
}
}

View File

@ -105,4 +105,4 @@ if(!extension_loaded('pocketmine_chunkutils')){
}
}
}
}

View File

@ -232,4 +232,4 @@ interface LevelProvider{
public function close();
}
}

View File

@ -69,4 +69,4 @@ abstract class LevelProviderManager{
public static function getProviderByName(string $name){
return self::$providers[trim(strtolower($name))] ?? null;
}
}
}

View File

@ -27,4 +27,4 @@ use pocketmine\level\format\ChunkException;
class UnsupportedChunkFormatException extends ChunkException{
}
}

View File

@ -648,4 +648,4 @@ class LevelDB extends BaseLevelProvider{
$this->db->close();
$this->level = null;
}
}
}

View File

@ -165,4 +165,4 @@ class Anvil extends McRegion{
return 256;
}
}
}

View File

@ -27,4 +27,4 @@ namespace pocketmine\level\format\io\region;
class CorruptedRegionException extends RegionException{
}
}

View File

@ -60,4 +60,4 @@ class PMAnvil extends Anvil{
public static function getPcWorldFormatVersion() : int{
return -1; //Not a PC format, only PocketMine-MP
}
}
}

View File

@ -27,4 +27,4 @@ namespace pocketmine\level\format\io\region;
class RegionException extends \RuntimeException{
}
}

View File

@ -169,4 +169,4 @@ class PopulationTask extends AsyncTask{
$level->generateChunkCallback($chunk->getX(), $chunk->getZ(), $chunk);
}
}
}
}

View File

@ -192,4 +192,4 @@ abstract class Biome{
public function getRainfall() : float{
return $this->rainfall;
}
}
}

View File

@ -87,4 +87,4 @@ class BiomeSelector{
$biomeId = $this->map[$temperature + ($rainfall << 6)];
return $this->biomes[$biomeId] ?? $this->fallback;
}
}
}

View File

@ -148,4 +148,4 @@ abstract class Noise{
$this->offsetY = $y;
$this->offsetZ = $z;
}
}
}

View File

@ -147,4 +147,4 @@ class Perlin extends Noise{
public function getNoise2D($x, $y){
return $this->getNoise3D($x, $y, 0);
}
}
}

View File

@ -439,4 +439,4 @@ class Simplex extends Perlin{
// Sum up and scale the result to cover the range [-1,1]
return 27.0 * (n0 + n1 + n2 + n3 + n4);
}*/
}
}

View File

@ -266,4 +266,4 @@ class Normal extends Generator{
return new Vector3(127.5, 128, 127.5);
}
}
}

View File

@ -37,4 +37,4 @@ class DesertBiome extends SandyBiome{
public function getName() : string{
return "Desert";
}
}
}

View File

@ -62,4 +62,4 @@ class ForestBiome extends GrassyBiome{
public function getName() : string{
return $this->type === self::TYPE_BIRCH ? "Birch Forest" : "Forest";
}
}
}

View File

@ -37,4 +37,4 @@ abstract class GrassyBiome extends NormalBiome{
BlockFactory::get(Block::DIRT, 0),
]);
}
}
}

View File

@ -44,4 +44,4 @@ class IcePlainsBiome extends SnowyBiome{
public function getName() : string{
return "Ice Plains";
}
}
}

View File

@ -51,4 +51,4 @@ class MountainsBiome extends GrassyBiome{
public function getName() : string{
return "Mountains";
}
}
}

View File

@ -44,4 +44,4 @@ class OceanBiome extends GrassyBiome{
public function getName() : string{
return "Ocean";
}
}
}

View File

@ -44,4 +44,4 @@ class PlainBiome extends GrassyBiome{
public function getName() : string{
return "Plains";
}
}
}

View File

@ -44,4 +44,4 @@ class RiverBiome extends GrassyBiome{
public function getName() : string{
return "River";
}
}
}

View File

@ -37,4 +37,4 @@ abstract class SandyBiome extends NormalBiome{
BlockFactory::get(Block::SANDSTONE, 0)
]);
}
}
}

View File

@ -35,4 +35,4 @@ class SmallMountainsBiome extends MountainsBiome{
public function getName() : string{
return "Small Mountains";
}
}
}

View File

@ -37,4 +37,4 @@ abstract class SnowyBiome extends NormalBiome{
BlockFactory::get(Block::DIRT, 0)
]);
}
}
}

View File

@ -37,4 +37,4 @@ class SwampBiome extends GrassyBiome{
public function getName() : string{
return "Swamp";
}
}
}

View File

@ -50,4 +50,4 @@ class TaigaBiome extends SnowyBiome{
public function getName() : string{
return "Taiga";
}
}
}

View File

@ -84,4 +84,4 @@ class BigTree extends Tree{
}
}
}

View File

@ -46,4 +46,4 @@ class BirchTree extends Tree{
}
parent::placeObject($level, $x, $y, $z, $random);
}
}
}

View File

@ -34,4 +34,4 @@ class JungleTree extends Tree{
$this->type = Wood::JUNGLE;
$this->treeHeight = 8;
}
}
}

View File

@ -40,4 +40,4 @@ class OakTree extends Tree{
$this->treeHeight = $random->nextBoundedInt(3) + 4;
parent::placeObject($level, $x, $y, $z, $random);
}
}
}

View File

@ -98,4 +98,4 @@ class Ore{
}
}
}
}

View File

@ -44,4 +44,4 @@ class OreType{
$this->maxHeight = $maxHeight;
$this->minHeight = $minHeight;
}
}
}

View File

@ -45,4 +45,4 @@ class Pond{
}
}
}

View File

@ -29,4 +29,4 @@ namespace pocketmine\level\generator\object;
abstract class PopulatorObject{
}
}

View File

@ -81,4 +81,4 @@ class SpruceTree extends Tree{
}
}
}

View File

@ -50,4 +50,4 @@ class TallGrass{
}
}
}
}
}

View File

@ -129,4 +129,4 @@ abstract class Tree{
}
}
}
}
}

View File

@ -65,4 +65,4 @@ class GroundCover extends Populator{
}
}
}
}
}

View File

@ -39,4 +39,4 @@ class Mineshaft extends Populator{
}
}
}
}

View File

@ -52,4 +52,4 @@ class Ore extends Populator{
public function setOreTypes(array $types){
$this->oreTypes = $types;
}
}
}

View File

@ -57,4 +57,4 @@ class Pond extends Populator{
public function setLavaSurfaceOdd(int $lavaSurfaceOdd){
$this->lavaSurfaceOdd = $lavaSurfaceOdd;
}
}
}

View File

@ -40,4 +40,4 @@ abstract class Populator{
* @return mixed
*/
abstract public function populate(ChunkManager $level, int $chunkX, int $chunkZ, Random $random);
}
}

View File

@ -71,4 +71,4 @@ class TallGrass extends Populator{
return $y === 0 ? -1 : ++$y;
}
}
}

View File

@ -75,4 +75,4 @@ class Tree extends Populator{
return ++$y;
}
}
}

View File

@ -32,4 +32,4 @@ class BlockLightUpdate extends LightUpdate{
public function setLight(int $x, int $y, int $z, int $level){
$this->subChunkHandler->currentSubChunk->setBlockLight($x & 0x0f, $y & 0x0f, $z & 0x0f, $level);
}
}
}

View File

@ -173,4 +173,4 @@ abstract class LightUpdate{
}
}
}
}
}

View File

@ -32,4 +32,4 @@ class SkyLightUpdate extends LightUpdate{
public function setLight(int $x, int $y, int $z, int $level){
$this->subChunkHandler->currentSubChunk->setBlockSkyLight($x & 0x0f, $y & 0x0f, $z & 0x0f, $level);
}
}
}

View File

@ -29,4 +29,4 @@ class HugeExplodeSeedParticle extends GenericParticle{
public function __construct(Vector3 $pos){
parent::__construct($pos, Particle::TYPE_HUGE_EXPLODE_SEED);
}
}
}

View File

@ -75,4 +75,4 @@ class SubChunkIteratorManager{
return true;
}
}
}