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:
@ -111,4 +111,4 @@ interface ChunkLoader{
|
||||
*/
|
||||
public function onBlockChanged(Vector3 $block);
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -149,4 +149,4 @@ interface ChunkManager{
|
||||
* @return bool
|
||||
*/
|
||||
public function isInWorld(float $x, float $y, float $z) : bool;
|
||||
}
|
||||
}
|
||||
|
@ -27,4 +27,4 @@ use pocketmine\utils\ServerException;
|
||||
|
||||
class LevelException extends ServerException{
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -179,4 +179,4 @@ class SimpleChunkManager implements ChunkManager{
|
||||
$z <= INT32_MAX and $z >= INT32_MIN
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -89,4 +89,4 @@ class WeakPosition extends Position{
|
||||
public function __toString(){
|
||||
return "Weak" . parent::__toString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -25,4 +25,4 @@ namespace pocketmine\level\format;
|
||||
|
||||
class ChunkException extends \RuntimeException{
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -120,4 +120,4 @@ class EmptySubChunk implements SubChunkInterface{
|
||||
public function fastSerialize() : string{
|
||||
throw new \BadMethodCallException("Should not try to serialize empty subchunks");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -242,4 +242,4 @@ class SubChunk implements SubChunkInterface{
|
||||
public function __debugInfo(){
|
||||
return [];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -206,4 +206,4 @@ interface SubChunkInterface{
|
||||
* @return string
|
||||
*/
|
||||
public function fastSerialize() : string;
|
||||
}
|
||||
}
|
||||
|
@ -94,4 +94,4 @@ class ChunkRequestTask extends AsyncTask{
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -105,4 +105,4 @@ if(!extension_loaded('pocketmine_chunkutils')){
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -232,4 +232,4 @@ interface LevelProvider{
|
||||
|
||||
public function close();
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -69,4 +69,4 @@ abstract class LevelProviderManager{
|
||||
public static function getProviderByName(string $name){
|
||||
return self::$providers[trim(strtolower($name))] ?? null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -27,4 +27,4 @@ use pocketmine\level\format\ChunkException;
|
||||
|
||||
class UnsupportedChunkFormatException extends ChunkException{
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -648,4 +648,4 @@ class LevelDB extends BaseLevelProvider{
|
||||
$this->db->close();
|
||||
$this->level = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -165,4 +165,4 @@ class Anvil extends McRegion{
|
||||
return 256;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -27,4 +27,4 @@ namespace pocketmine\level\format\io\region;
|
||||
|
||||
class CorruptedRegionException extends RegionException{
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -60,4 +60,4 @@ class PMAnvil extends Anvil{
|
||||
public static function getPcWorldFormatVersion() : int{
|
||||
return -1; //Not a PC format, only PocketMine-MP
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -27,4 +27,4 @@ namespace pocketmine\level\format\io\region;
|
||||
|
||||
class RegionException extends \RuntimeException{
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -173,4 +173,4 @@ abstract class LightUpdate{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -29,4 +29,4 @@ class HugeExplodeSeedParticle extends GenericParticle{
|
||||
public function __construct(Vector3 $pos){
|
||||
parent::__construct($pos, Particle::TYPE_HUGE_EXPLODE_SEED);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -75,4 +75,4 @@ class SubChunkIteratorManager{
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user