mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +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:
@ -169,4 +169,4 @@ class PopulationTask extends AsyncTask{
|
||||
$level->generateChunkCallback($chunk->getX(), $chunk->getZ(), $chunk);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -192,4 +192,4 @@ abstract class Biome{
|
||||
public function getRainfall() : float{
|
||||
return $this->rainfall;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -87,4 +87,4 @@ class BiomeSelector{
|
||||
$biomeId = $this->map[$temperature + ($rainfall << 6)];
|
||||
return $this->biomes[$biomeId] ?? $this->fallback;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -148,4 +148,4 @@ abstract class Noise{
|
||||
$this->offsetY = $y;
|
||||
$this->offsetZ = $z;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -147,4 +147,4 @@ class Perlin extends Noise{
|
||||
public function getNoise2D($x, $y){
|
||||
return $this->getNoise3D($x, $y, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
@ -266,4 +266,4 @@ class Normal extends Generator{
|
||||
return new Vector3(127.5, 128, 127.5);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -37,4 +37,4 @@ class DesertBiome extends SandyBiome{
|
||||
public function getName() : string{
|
||||
return "Desert";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -62,4 +62,4 @@ class ForestBiome extends GrassyBiome{
|
||||
public function getName() : string{
|
||||
return $this->type === self::TYPE_BIRCH ? "Birch Forest" : "Forest";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -37,4 +37,4 @@ abstract class GrassyBiome extends NormalBiome{
|
||||
BlockFactory::get(Block::DIRT, 0),
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -44,4 +44,4 @@ class IcePlainsBiome extends SnowyBiome{
|
||||
public function getName() : string{
|
||||
return "Ice Plains";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -51,4 +51,4 @@ class MountainsBiome extends GrassyBiome{
|
||||
public function getName() : string{
|
||||
return "Mountains";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -44,4 +44,4 @@ class OceanBiome extends GrassyBiome{
|
||||
public function getName() : string{
|
||||
return "Ocean";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -44,4 +44,4 @@ class PlainBiome extends GrassyBiome{
|
||||
public function getName() : string{
|
||||
return "Plains";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -44,4 +44,4 @@ class RiverBiome extends GrassyBiome{
|
||||
public function getName() : string{
|
||||
return "River";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -37,4 +37,4 @@ abstract class SandyBiome extends NormalBiome{
|
||||
BlockFactory::get(Block::SANDSTONE, 0)
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -35,4 +35,4 @@ class SmallMountainsBiome extends MountainsBiome{
|
||||
public function getName() : string{
|
||||
return "Small Mountains";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -37,4 +37,4 @@ abstract class SnowyBiome extends NormalBiome{
|
||||
BlockFactory::get(Block::DIRT, 0)
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -37,4 +37,4 @@ class SwampBiome extends GrassyBiome{
|
||||
public function getName() : string{
|
||||
return "Swamp";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -50,4 +50,4 @@ class TaigaBiome extends SnowyBiome{
|
||||
public function getName() : string{
|
||||
return "Taiga";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -84,4 +84,4 @@ class BigTree extends Tree{
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -46,4 +46,4 @@ class BirchTree extends Tree{
|
||||
}
|
||||
parent::placeObject($level, $x, $y, $z, $random);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -34,4 +34,4 @@ class JungleTree extends Tree{
|
||||
$this->type = Wood::JUNGLE;
|
||||
$this->treeHeight = 8;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -40,4 +40,4 @@ class OakTree extends Tree{
|
||||
$this->treeHeight = $random->nextBoundedInt(3) + 4;
|
||||
parent::placeObject($level, $x, $y, $z, $random);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -98,4 +98,4 @@ class Ore{
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -44,4 +44,4 @@ class OreType{
|
||||
$this->maxHeight = $maxHeight;
|
||||
$this->minHeight = $minHeight;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -45,4 +45,4 @@ class Pond{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -29,4 +29,4 @@ namespace pocketmine\level\generator\object;
|
||||
|
||||
abstract class PopulatorObject{
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -81,4 +81,4 @@ class SpruceTree extends Tree{
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -50,4 +50,4 @@ class TallGrass{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -129,4 +129,4 @@ abstract class Tree{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -65,4 +65,4 @@ class GroundCover extends Populator{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -39,4 +39,4 @@ class Mineshaft extends Populator{
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -52,4 +52,4 @@ class Ore extends Populator{
|
||||
public function setOreTypes(array $types){
|
||||
$this->oreTypes = $types;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -57,4 +57,4 @@ class Pond extends Populator{
|
||||
public function setLavaSurfaceOdd(int $lavaSurfaceOdd){
|
||||
$this->lavaSurfaceOdd = $lavaSurfaceOdd;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -40,4 +40,4 @@ abstract class Populator{
|
||||
* @return mixed
|
||||
*/
|
||||
abstract public function populate(ChunkManager $level, int $chunkX, int $chunkZ, Random $random);
|
||||
}
|
||||
}
|
||||
|
@ -71,4 +71,4 @@ class TallGrass extends Populator{
|
||||
|
||||
return $y === 0 ? -1 : ++$y;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -75,4 +75,4 @@ class Tree extends Populator{
|
||||
|
||||
return ++$y;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user