PhpStorm automated formatting (#11)

* PhpStorm reformatting

* Tuned PhpStorm reformatting

* Improved ItemIds and BlockIds formatting

* Tuned more PhpStorm reformatting

* Improved string concatenation
This commit is contained in:
SOFe
2016-10-03 19:05:48 +08:00
committed by GitHub
parent 2b6d058760
commit 58ff381557
77 changed files with 266 additions and 264 deletions

View File

@ -159,7 +159,7 @@ class Flat extends Generator{
}
public function generateChunk($chunkX, $chunkZ){
if($this->chunk === null) {
if($this->chunk === null){
if(isset($this->options["preset"]) and $this->options["preset"] != ""){
$this->parsePreset($this->options["preset"], $chunkX, $chunkZ);
}else{

View File

@ -88,7 +88,7 @@ abstract class Generator{
if($samplingRate === 0){
throw new \InvalidArgumentException("samplingRate cannot be 0");
}
if ($xSize % $samplingRate !== 0) {
if($xSize % $samplingRate !== 0){
throw new \InvalidArgumentCountException("xSize % samplingRate must return 0");
}

View File

@ -61,7 +61,7 @@ abstract class Noise{
);
}
public static function trilinearLerp($x, $y, $z, $q000, $q001, $q010, $q011, $q100, $q101, $q110, $q111, $x1, $x2, $y1, $y2, $z1, $z2) {
public static function trilinearLerp($x, $y, $z, $q000, $q001, $q010, $q011, $q100, $q101, $q110, $q111, $x1, $x2, $y1, $y2, $z1, $z2){
$dx1 = (($x2 - $x) / ($x2 - $x1));
$dx2 = (($x - $x1) / ($x2 - $x1));
$dy1 = (($y2 - $y) / ($y2 - $y1));

View File

@ -101,10 +101,10 @@ class Normal extends Generator{
$hash *= $hash + 223;
$xNoise = $hash >> 20 & 3;
$zNoise = $hash >> 22 & 3;
if ($xNoise == 3) {
if($xNoise == 3){
$xNoise = 1;
}
if($zNoise == 3) {
if($zNoise == 3){
$zNoise = 1;
}

View File

@ -22,7 +22,6 @@
namespace pocketmine\level\generator\normal\biome;
class DesertBiome extends SandyBiome{
public function __construct(){