Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace pocketmine\level\generator\normal; use pocketmine\block\Block; use ..

Decoded Output download

<?php 
 
namespace pocketmine\level\generator\normal; 
 
use pocketmine\block\Block; 
use pocketmine\block\CoalOre; 
use pocketmine\block\DiamondOre; 
use pocketmine\block\Dirt; 
use pocketmine\block\GoldOre; 
use pocketmine\block\Gravel; 
use pocketmine\block\IronOre; 
use pocketmine\block\LapisOre; 
use pocketmine\block\RedstoneOre; 
use pocketmine\level\ChunkManager; 
use pocketmine\level\generator\biome\Biome; 
use pocketmine\level\generator\normal\noise\NoiseGeneratorOctaves; 
use pocketmine\level\generator\normal\populator\BedrockPopulator; 
use pocketmine\level\generator\normal\populator\GroundCoverPopulator; 
use pocketmine\level\generator\normal\populator\CavePopulator; 
use pocketmine\level\generator\normal\populator\DungeonPopulator; 
use pocketmine\level\generator\biome\BiomeSelector; 
use pocketmine\level\generator\Generator; 
use pocketmine\level\generator\normal\math\MathHelper; 
use pocketmine\level\generator\noise\Simplex; 
use pocketmine\level\generator\object\OreType; 
use pocketmine\level\generator\populator\GroundCover; 
use pocketmine\level\generator\populator\Ore; 
use pocketmine\level\generator\populator\Populator; 
use pocketmine\level\Level; 
use pocketmine\math\Vector3; 
use pocketmine\utils\Random; 
class Normal extends Generator 
{ 
    private $populators = []; 
    public $level; 
    private $random; 
    private $bedrockDepth = 5; 
    private $generationPopulators = []; 
    private $noiseBase; 
    private $selector; 
    private $noiseSeaFloor; 
    private $noiseLand; 
    private $noiseMountains; 
    private $noiseBaseGround; 
    private $noiseRiver; 
    private $heightOffset; 
    private $depthRegion = []; 
    private $mainNoiseRegion = []; 
    private $minLimitRegion = []; 
    private $maxLimitRegion = []; 
    private $heightMap = []; 
    protected static $BIOME_WEIGHTS = []; 
    private $minLimitPerlinNoise = null; 
    private $maxLimitPerlinNoise = null; 
    private $mainPerlinNoise = null; 
    private $surfaceNoise = null; 
    private $seaHeight = 62; 
    private $seaFloorHeight = 48; 
    private $beathStartHeight = 60; 
    private $beathStopHeight = 64; 
    private $seaFloorGenerateRange = 5; 
    private $landHeightRange = 18; 
    private $mountainHeight = 13; 
    private $basegroundHeight = 3; 
    public function getName() 
    { 
        return "normal"; 
    } 
    public function getSettings() 
    { 
        return array(); 
    } 
    public function __construct(array $O9292040946548447506 = []) 
    { 
    } 
    public function pickBiome($O7665711374173273331, $O1129998551777762293) 
    { 
        $O5729822244707573643 = $O7665711374173273331 * 2345803 ^ $O1129998551777762293 * 9236449 ^ $this->level->getSeed(); 
        $O5729822244707573643 *= $O5729822244707573643 + 223; 
        $O4812986903229552648 = $O5729822244707573643 >> 20 & 3; 
        $O9041638270056079104 = $O5729822244707573643 >> 22 & 3; 
        if (!($O4812986903229552648 == 3)) { 
            goto O4624409692258276972; 
        } 
        $O4812986903229552648 = 1; 
        O4624409692258276972: 
        if (!($O9041638270056079104 == 3)) { 
            goto O0747039380942306614; 
        } 
        $O9041638270056079104 = 1; 
        O0747039380942306614: 
        return $this->selector->pickBiome($O7665711374173273331 + $O4812986903229552648 - 1, $O1129998551777762293 + $O9041638270056079104 - 1); 
    } 
    public $max = 0; 
    public $min = 0; 
    public function init(ChunkManager $O8990405184547542856, Random $O3331223695686063599) 
    { 
        $this->level = $O8990405184547542856; 
        $this->random = $O3331223695686063599; 
        $this->random->setSeed($this->level->getSeed()); 
        $this->noiseSeaFloor = new Simplex($this->random, 1, 0.125, 0.015625); 
        $this->noiseLand = new Simplex($this->random, 2, 0.125, 0.001953125); 
        $this->noiseMountains = new Simplex($this->random, 4, 1, 0.002); 
        $this->noiseBaseGround = new Simplex($this->random, 4, 0.25, 0.015625); 
        $this->noiseRiver = new Simplex($this->random, 2, 1, 0.001953125); 
        $this->random->setSeed($this->level->getSeed()); 
        $O8236179980604662852 = -2; 
        O4328004090435317320: 
        if (!($O8236179980604662852 <= 2)) { 
            $this->heightOffset = $O3331223695686063599->nextRange(-5, 3); 
            $this->minLimitPerlinNoise = new NoiseGeneratorOctaves($this->random, 16); 
            $this->maxLimitPerlinNoise = new NoiseGeneratorOctaves($this->random, 16); 
            $this->mainPerlinNoise = new NoiseGeneratorOctaves($this->random, 8); 
            $this->scaleNoise = new NoiseGeneratorOctaves($this->random, 16); 
            $this->depthNoise = new NoiseGeneratorOctaves($this->random, 20); 
            $this->selector = new BiomeSelector($this->random); 
            $this->localSeed1 = $this->random->nextSignedFloat(); 
            $this->localSeed2 = $this->random->nextSignedFloat(); 
            $O3374096146904424461 = new GroundCoverPopulator(); 
            $this->generationPopulators[] = $O3374096146904424461; 
            $O3182916718335766152 = new BedrockPopulator(); 
            $this->generationPopulators[] = $O3182916718335766152; 
            $O6872300142388681786 = new CavePopulator(); 
            $this->generationPopulators[] = $O6872300142388681786; 
            $O4904084303343119370 = new Ore(); 
            $O4904084303343119370->setOreTypes([new OreType(Block::get(Block::COAL_ORE), 20, 17, 0, 128), new OreType(Block::get(Block::IRON_ORE), 20, 9, 0, 64), new OreType(Block::get(Block::REDSTONE_ORE), 8, 8, 0, 16), new OreType(Block::get(Block::LAPIS_ORE), 1, 7, 0, 16), new OreType(Block::get(Block::GOLD_ORE), 2, 9, 0, 32), new OreType(Block::get(Block::DIAMOND_ORE), 1, 8, 0, 16), new OreType(Block::get(Block::DIRT), 10, 33, 0, 128), new OreType(Block::get(Block::GRAVEL), 8, 33, 0, 128), new OreType(Block::get(Block::STONE, 1), 10, 33, 0, 80), new OreType(Block::get(Block::STONE, 3), 10, 33, 0, 80), new OreType(Block::get(Block::STONE, 5), 10, 33, 0, 80)]); 
            $this->populators[] = $O4904084303343119370; 
            // [PHPDeobfuscator] Implied return 
            return; 
        } 
        $O9636621152422702437 = -2; 
        O8814448055162325291: 
        if (!($O9636621152422702437 <= 2)) { 
            ++$O8236179980604662852; 
            goto O4328004090435317320; 
        } 
        self::$BIOME_WEIGHTS[$O8236179980604662852 + 2 + ($O9636621152422702437 + 2) * 5] = (float) (10.0 / sqrt((float) ($O8236179980604662852 * $O8236179980604662852 + $O9636621152422702437 * $O9636621152422702437) + 0.2)); 
        ++$O9636621152422702437; 
        goto O8814448055162325291; 
    } 
    public function generateChunk($O3006954518737917268, $O8823528619564163764) 
    { 
        $O6010552028301778655 = $O3006954518737917268 << 4; 
        $O4646578898999784700 = $O8823528619564163764 << 4; 
        $this->random->setSeed(0xdeadbeef ^ $O3006954518737917268 << 8 ^ $O8823528619564163764 ^ $this->level->getSeed()); 
        $O6004335627897345490 = $this->level->getChunk($O3006954518737917268, $O8823528619564163764); 
        $O9226524671047122064 = $this->depthNoise->generateNoiseOctaves8($this->depthRegion, $O3006954518737917268 * 4, $O8823528619564163764 * 4, 5, 5, 200.0, 200.0, 0.5); 
        $this->depthRegion = $O9226524671047122064; 
        $O9012890364644091554 = $this->mainPerlinNoise->generateNoiseOctaves($this->mainNoiseRegion, $O3006954518737917268 * 4, 0, $O8823528619564163764 * 4, 5, 33, 5, 11.406866666666668, 4.277575000000001, 11.406866666666668); 
        $this->mainNoiseRegion = $O9012890364644091554; 
        $O3651896177985542241 = $this->minLimitPerlinNoise->generateNoiseOctaves($this->minLimitRegion, $O3006954518737917268 * 4, 0, $O8823528619564163764 * 4, 5, 33, 5, 684.412, 684.412, 684.412); 
        $this->minLimitRegion = $O3651896177985542241; 
        $O9186843936144485976 = $this->maxLimitPerlinNoise->generateNoiseOctaves($this->maxLimitRegion, $O3006954518737917268 * 4, 0, $O8823528619564163764 * 4, 5, 33, 5, 684.412, 684.412, 684.412); 
        $this->maxLimitRegion = $O9186843936144485976; 
        $O5624651027584913111 = $this->heightMap; 
        $O6649289243323889121 = 0; 
        $O5967990459726301160 = 0; 
        $O9020212922959878560 = 0; 
        O6312445810146391912: 
        if (!($O9020212922959878560 < 5)) { 
            $O9020212922959878560 = 0; 
            O0149676996163650791: 
            if (!($O9020212922959878560 < 4)) { 
                $O7665711374173273331 = 0; 
                O4253426468591292608: 
                if (!($O7665711374173273331 < 16)) { 
                    foreach ($this->generationPopulators as $O3715134213494893945) { 
                        $O3715134213494893945->populate($this->level, $O3006954518737917268, $O8823528619564163764, $this->random, $O6004335627897345490); 
                    } 
                    // [PHPDeobfuscator] Implied return 
                    return; 
                } 
                $O1129998551777762293 = 0; 
                O6843606359630722559: 
                if (!($O1129998551777762293 < 16)) { 
                    $O7665711374173273331++; 
                    goto O4253426468591292608; 
                } 
                $O7567338628361095428 = $this->selector->pickBiome($O6010552028301778655 | $O7665711374173273331, $O4646578898999784700 | $O1129998551777762293); 
                $O6004335627897345490->setBiomeId($O7665711374173273331, $O1129998551777762293, $O7567338628361095428->getId()); 
                $O1129998551777762293++; 
                goto O6843606359630722559; 
            } 
            $O4464991853383652143 = $O9020212922959878560 * 5; 
            $O2237900097353682412 = ($O9020212922959878560 + 1) * 5; 
            $O5737973175376458757 = 0; 
            O7125147203763000607: 
            if (!($O5737973175376458757 < 4)) { 
                ++$O9020212922959878560; 
                goto O0149676996163650791; 
            } 
            $O7004298064816722397 = ($O4464991853383652143 + $O5737973175376458757) * 33; 
            $O7444794456243817350 = ($O4464991853383652143 + $O5737973175376458757 + 1) * 33; 
            $O9235434319380393886 = ($O2237900097353682412 + $O5737973175376458757) * 33; 
            $O3224265390239426959 = ($O2237900097353682412 + $O5737973175376458757 + 1) * 33; 
            $O3858060630884451834 = 0; 
            O2664108175097960046: 
            if (!($O3858060630884451834 < 32)) { 
                ++$O5737973175376458757; 
                goto O7125147203763000607; 
            } 
            $O8325960659580645859 = $O5624651027584913111[$O7004298064816722397 + $O3858060630884451834]; 
            $O3112928735185904101 = $O5624651027584913111[$O7444794456243817350 + $O3858060630884451834]; 
            $O7071482998866918720 = $O5624651027584913111[$O9235434319380393886 + $O3858060630884451834]; 
            $O2883867355496763257 = $O5624651027584913111[$O3224265390239426959 + $O3858060630884451834]; 
            $O0537098401336809856 = ($O5624651027584913111[$O7004298064816722397 + $O3858060630884451834 + 1] - $O8325960659580645859) * 0.125; 
            $O7765958345248486239 = ($O5624651027584913111[$O7444794456243817350 + $O3858060630884451834 + 1] - $O3112928735185904101) * 0.125; 
            $O3560407322042527239 = ($O5624651027584913111[$O9235434319380393886 + $O3858060630884451834 + 1] - $O7071482998866918720) * 0.125; 
            $O1499633767192497033 = ($O5624651027584913111[$O3224265390239426959 + $O3858060630884451834 + 1] - $O2883867355496763257) * 0.125; 
            $O1247419137838853110 = 0; 
            O9698269471736453987: 
            if (!($O1247419137838853110 < 8)) { 
                ++$O3858060630884451834; 
                goto O2664108175097960046; 
            } 
            $O4809098780398373306 = $O8325960659580645859; 
            $O5393032431801137261 = $O3112928735185904101; 
            $O8297103448214261248 = ($O7071482998866918720 - $O8325960659580645859) * 0.25; 
            $O2679902541181439043 = ($O2883867355496763257 - $O3112928735185904101) * 0.25; 
            $O1186542738070030896 = 0; 
            O4728358348891508851: 
            if (!($O1186542738070030896 < 4)) { 
                $O8325960659580645859 += $O0537098401336809856; 
                $O3112928735185904101 += $O7765958345248486239; 
                $O7071482998866918720 += $O3560407322042527239; 
                $O2883867355496763257 += $O1499633767192497033; 
                ++$O1247419137838853110; 
                goto O9698269471736453987; 
            } 
            $O9616226985553264431 = ($O5393032431801137261 - $O4809098780398373306) * 0.25; 
            $O0512174678510442738 = $O4809098780398373306 - $O9616226985553264431; 
            $O2825462238249186933 = 0; 
            O4305433555745052918: 
            if (!($O2825462238249186933 < 4)) { 
                $O4809098780398373306 += $O8297103448214261248; 
                $O5393032431801137261 += $O2679902541181439043; 
                ++$O1186542738070030896; 
                goto O4728358348891508851; 
            } 
            if (($O0512174678510442738 += $O9616226985553264431) > 0.0) { 
                $O6004335627897345490->setBlockId($O9020212922959878560 * 4 + $O1186542738070030896, $O3858060630884451834 * 8 + $O1247419137838853110, $O5737973175376458757 * 4 + $O2825462238249186933, Block::STONE); 
                goto O6342965663570457413; 
            } 
            if ($O3858060630884451834 * 8 + $O1247419137838853110 <= $this->seaHeight) { 
                $O6004335627897345490->setBlockId($O9020212922959878560 * 4 + $O1186542738070030896, $O3858060630884451834 * 8 + $O1247419137838853110, $O5737973175376458757 * 4 + $O2825462238249186933, Block::STILL_WATER); 
                goto O8062803118278624659; 
            } 
            O8062803118278624659: 
            O6342965663570457413: 
            ++$O2825462238249186933; 
            goto O4305433555745052918; 
        } 
        $O5737973175376458757 = 0; 
        O3177241354149354550: 
        if (!($O5737973175376458757 < 5)) { 
            ++$O9020212922959878560; 
            goto O6312445810146391912; 
        } 
        $O4292845385997978183 = 0.0; 
        $O7571164431142100323 = 0.0; 
        $O5892044668173156151 = 0.0; 
        $O7567338628361095428 = $this->selector->pickBiome($O6010552028301778655 + $O9020212922959878560 * 4, $O4646578898999784700 + $O5737973175376458757 * 4); 
        $O8068136524272057455 = -2; 
        O3988619098778475068: 
        if (!($O8068136524272057455 <= 2)) { 
            $O4292845385997978183 /= $O5892044668173156151; 
            $O7571164431142100323 /= $O5892044668173156151; 
            $O4292845385997978183 = $O4292845385997978183 * 0.9 + 0.1; 
            $O7571164431142100323 = ($O7571164431142100323 * 4.0 - 1.0) / 8.0; 
            $O3616512311770122577 = $O9226524671047122064[$O5967990459726301160] / 8000.0; 
            if (!($O3616512311770122577 < 0.0)) { 
                goto O9779058583993589192; 
            } 
            $O3616512311770122577 = -$O3616512311770122577 * 0.3; 
            O9779058583993589192: 
            $O3616512311770122577 = $O3616512311770122577 * 3.0 - 2.0; 
            if ($O3616512311770122577 < 0.0) { 
                $O3616512311770122577 /= 2.0; 
                if (!($O3616512311770122577 < -1.0)) { 
                    goto O9550477111930645003; 
                } 
                $O3616512311770122577 = -1.0; 
                O9550477111930645003: 
                $O3616512311770122577 /= 1.4; 
                $O3616512311770122577 /= 2.0; 
                goto O3084725309438099521; 
            } 
            if (!($O3616512311770122577 > 1.0)) { 
                goto O1458350947278744528; 
            } 
            $O3616512311770122577 = 1.0; 
            O1458350947278744528: 
            $O3616512311770122577 /= 8.0; 
            O3084725309438099521: 
            ++$O5967990459726301160; 
            $O9959312453599414788 = $O7571164431142100323; 
            $O7498494143339960521 = $O4292845385997978183; 
            $O9959312453599414788 += $O3616512311770122577 * 0.2; 
            $O9959312453599414788 = $O9959312453599414788 * 8.5 / 8.0; 
            $O3640300007177275751 = 8.5 + $O9959312453599414788 * 4.0; 
            $O3858060630884451834 = 0; 
            O7089719056105030687: 
            if (!($O3858060630884451834 < 33)) { 
                ++$O5737973175376458757; 
                goto O3177241354149354550; 
            } 
            $O6211597836110105466 = ((float) $O3858060630884451834 - $O3640300007177275751) * 12.0 * 128.0 / 256.0 / $O7498494143339960521; 
            if (!($O6211597836110105466 < 0.0)) { 
                goto O7840814412200038492; 
            } 
            $O6211597836110105466 *= 4.0; 
            O7840814412200038492: 
            $O2418711942438659290 = $O3651896177985542241[$O6649289243323889121] / 512.0; 
            $O5007269604467047294 = $O9186843936144485976[$O6649289243323889121] / 512.0; 
            $O5934548610710033443 = ($O9012890364644091554[$O6649289243323889121] / 10.0 + 1.0) / 2.0; 
            $O1377309982886884395 = MathHelper::denormalizeClamp($O2418711942438659290, $O5007269604467047294, $O5934548610710033443) - $O6211597836110105466; 
            if (!($O3858060630884451834 > 29)) { 
                goto O0749933129124609756; 
            } 
            $O1829951189548741504 = (float) ($O3858060630884451834 - 29) / 3.0; 
            $O1377309982886884395 = $O1377309982886884395 * (1.0 - $O1829951189548741504) + -10.0 * $O1829951189548741504; 
            O0749933129124609756: 
            $O5624651027584913111[$O6649289243323889121] = $O1377309982886884395; 
            ++$O6649289243323889121; 
            ++$O3858060630884451834; 
            goto O7089719056105030687; 
        } 
        $O3021955987398925116 = -2; 
        O8251669115292616525: 
        if (!($O3021955987398925116 <= 2)) { 
            ++$O8068136524272057455; 
            goto O3988619098778475068; 
        } 
        $O5193213415356979810 = $this->selector->pickBiome($O6010552028301778655 + $O9020212922959878560 * 4 + $O8068136524272057455, $O4646578898999784700 + $O5737973175376458757 * 4 + $O3021955987398925116); 
        $O9824663135431470031 = $O5193213415356979810->getBaseHeight(); 
        $O6985425497636876191 = $O5193213415356979810->getHeightVariation(); 
        $O5702681580571291052 = self::$BIOME_WEIGHTS[$O8068136524272057455 + 2 + ($O3021955987398925116 + 2) * 5] / ($O9824663135431470031 + 2.0); 
        if (!($O5193213415356979810->getBaseHeight() > $O7567338628361095428->getBaseHeight())) { 
            goto O4875277406607169829; 
        } 
        $O5702681580571291052 /= 2.0; 
        O4875277406607169829: 
        $O4292845385997978183 += $O6985425497636876191 * $O5702681580571291052; 
        $O7571164431142100323 += $O9824663135431470031 * $O5702681580571291052; 
        $O5892044668173156151 += $O5702681580571291052; 
        ++$O3021955987398925116; 
        goto O8251669115292616525; 
    } 
    public function populateChunk($O3006954518737917268, $O8823528619564163764) 
    { 
        $this->random->setSeed(0xdeadbeef ^ $O3006954518737917268 << 8 ^ $O8823528619564163764 ^ $this->level->getSeed()); 
        foreach ($this->populators as $O3715134213494893945) { 
            $O3715134213494893945->populate($this->level, $O3006954518737917268, $O8823528619564163764, $this->random); 
        } 
        $O6004335627897345490 = $this->level->getChunk($O3006954518737917268, $O8823528619564163764); 
        $O7567338628361095428 = Biome::getBiome($O6004335627897345490->getBiomeId(7, 7)); 
        $O7567338628361095428->populateChunk($this->level, $O3006954518737917268, $O8823528619564163764, $this->random); 
    } 
    public static function getSpawn() : Vector3 
    { 
        return new Vector3(127, 90, 127); 
    } 
} ?>

Did this file decode correctly?

Original Code

<?php

namespace pocketmine\level\generator\normal;

use pocketmine\block\Block;
use pocketmine\block\CoalOre;
use pocketmine\block\DiamondOre;
use pocketmine\block\Dirt;
use pocketmine\block\GoldOre;
use pocketmine\block\Gravel;
use pocketmine\block\IronOre;
use pocketmine\block\LapisOre;
use pocketmine\block\RedstoneOre;
use pocketmine\level\ChunkManager;
use pocketmine\level\generator\biome\Biome;
use pocketmine\level\generator\normal\noise\NoiseGeneratorOctaves;
use pocketmine\level\generator\normal\populator\BedrockPopulator;
use pocketmine\level\generator\normal\populator\GroundCoverPopulator;
use pocketmine\level\generator\normal\populator\CavePopulator;
use pocketmine\level\generator\normal\populator\DungeonPopulator;
use pocketmine\level\generator\biome\BiomeSelector;
use pocketmine\level\generator\Generator;
use pocketmine\level\generator\normal\math\MathHelper;
use pocketmine\level\generator\noise\Simplex;
use pocketmine\level\generator\object\OreType;
use pocketmine\level\generator\populator\GroundCover;
use pocketmine\level\generator\populator\Ore;
use pocketmine\level\generator\populator\Populator;
use pocketmine\level\Level;
use pocketmine\math\Vector3;
use pocketmine\utils\Random;
class Normal extends Generator
{
    private $populators = [];
    public $level;
    private $random;
    private $bedrockDepth = 5;
    private $generationPopulators = [];
    private $noiseBase;
    private $selector;
    private $noiseSeaFloor;
    private $noiseLand;
    private $noiseMountains;
    private $noiseBaseGround;
    private $noiseRiver;
    private $heightOffset;
    private $depthRegion = [];
    private $mainNoiseRegion = [];
    private $minLimitRegion = [];
    private $maxLimitRegion = [];
    private $heightMap = [];
    protected static $BIOME_WEIGHTS = [];
    private $minLimitPerlinNoise = null;
    private $maxLimitPerlinNoise = null;
    private $mainPerlinNoise = null;
    private $surfaceNoise = null;
    private $seaHeight = 62;
    private $seaFloorHeight = 48;
    private $beathStartHeight = 60;
    private $beathStopHeight = 64;
    private $seaFloorGenerateRange = 5;
    private $landHeightRange = 18;
    private $mountainHeight = 13;
    private $basegroundHeight = 3;
    public function getName()
    {
        return "normal";
    }
    public function getSettings()
    {
        return array();
    }
    public function __construct(array $O9292040946548447506 = [])
    {
    }
    public function pickBiome($O7665711374173273331, $O1129998551777762293)
    {
        $O5729822244707573643 = $O7665711374173273331 * 2345803 ^ $O1129998551777762293 * 9236449 ^ $this->level->getSeed();
        $O5729822244707573643 *= $O5729822244707573643 + 223;
        $O4812986903229552648 = $O5729822244707573643 >> 20 & 3;
        $O9041638270056079104 = $O5729822244707573643 >> 22 & 3;
        if (!($O4812986903229552648 == 3)) {
            goto O4624409692258276972;
        }
        $O4812986903229552648 = 1;
        O4624409692258276972:
        if (!($O9041638270056079104 == 3)) {
            goto O0747039380942306614;
        }
        $O9041638270056079104 = 1;
        O0747039380942306614:
        return $this->selector->pickBiome($O7665711374173273331 + $O4812986903229552648 - 1, $O1129998551777762293 + $O9041638270056079104 - 1);
    }
    public $max = 0;
    public $min = 0;
    public function init(ChunkManager $O8990405184547542856, Random $O3331223695686063599)
    {
        $this->level = $O8990405184547542856;
        $this->random = $O3331223695686063599;
        $this->random->setSeed($this->level->getSeed());
        $this->noiseSeaFloor = new Simplex($this->random, 1, 0.125, 0.015625);
        $this->noiseLand = new Simplex($this->random, 2, 0.125, 0.001953125);
        $this->noiseMountains = new Simplex($this->random, 4, 1, 0.002);
        $this->noiseBaseGround = new Simplex($this->random, 4, 0.25, 0.015625);
        $this->noiseRiver = new Simplex($this->random, 2, 1, 0.001953125);
        $this->random->setSeed($this->level->getSeed());
        $O8236179980604662852 = -2;
        O4328004090435317320:
        if (!($O8236179980604662852 <= 2)) {
            $this->heightOffset = $O3331223695686063599->nextRange(-5, 3);
            $this->minLimitPerlinNoise = new NoiseGeneratorOctaves($this->random, 16);
            $this->maxLimitPerlinNoise = new NoiseGeneratorOctaves($this->random, 16);
            $this->mainPerlinNoise = new NoiseGeneratorOctaves($this->random, 8);
            $this->scaleNoise = new NoiseGeneratorOctaves($this->random, 16);
            $this->depthNoise = new NoiseGeneratorOctaves($this->random, 20);
            $this->selector = new BiomeSelector($this->random);
            $this->localSeed1 = $this->random->nextSignedFloat();
            $this->localSeed2 = $this->random->nextSignedFloat();
            $O3374096146904424461 = new GroundCoverPopulator();
            $this->generationPopulators[] = $O3374096146904424461;
            $O3182916718335766152 = new BedrockPopulator();
            $this->generationPopulators[] = $O3182916718335766152;
            $O6872300142388681786 = new CavePopulator();
            $this->generationPopulators[] = $O6872300142388681786;
            $O4904084303343119370 = new Ore();
            $O4904084303343119370->setOreTypes([new OreType(Block::get(Block::COAL_ORE), 20, 17, 0, 128), new OreType(Block::get(Block::IRON_ORE), 20, 9, 0, 64), new OreType(Block::get(Block::REDSTONE_ORE), 8, 8, 0, 16), new OreType(Block::get(Block::LAPIS_ORE), 1, 7, 0, 16), new OreType(Block::get(Block::GOLD_ORE), 2, 9, 0, 32), new OreType(Block::get(Block::DIAMOND_ORE), 1, 8, 0, 16), new OreType(Block::get(Block::DIRT), 10, 33, 0, 128), new OreType(Block::get(Block::GRAVEL), 8, 33, 0, 128), new OreType(Block::get(Block::STONE, 1), 10, 33, 0, 80), new OreType(Block::get(Block::STONE, 3), 10, 33, 0, 80), new OreType(Block::get(Block::STONE, 5), 10, 33, 0, 80)]);
            $this->populators[] = $O4904084303343119370;
            // [PHPDeobfuscator] Implied return
            return;
        }
        $O9636621152422702437 = -2;
        O8814448055162325291:
        if (!($O9636621152422702437 <= 2)) {
            ++$O8236179980604662852;
            goto O4328004090435317320;
        }
        self::$BIOME_WEIGHTS[$O8236179980604662852 + 2 + ($O9636621152422702437 + 2) * 5] = (float) (10.0 / sqrt((float) ($O8236179980604662852 * $O8236179980604662852 + $O9636621152422702437 * $O9636621152422702437) + 0.2));
        ++$O9636621152422702437;
        goto O8814448055162325291;
    }
    public function generateChunk($O3006954518737917268, $O8823528619564163764)
    {
        $O6010552028301778655 = $O3006954518737917268 << 4;
        $O4646578898999784700 = $O8823528619564163764 << 4;
        $this->random->setSeed(0xdeadbeef ^ $O3006954518737917268 << 8 ^ $O8823528619564163764 ^ $this->level->getSeed());
        $O6004335627897345490 = $this->level->getChunk($O3006954518737917268, $O8823528619564163764);
        $O9226524671047122064 = $this->depthNoise->generateNoiseOctaves8($this->depthRegion, $O3006954518737917268 * 4, $O8823528619564163764 * 4, 5, 5, 200.0, 200.0, 0.5);
        $this->depthRegion = $O9226524671047122064;
        $O9012890364644091554 = $this->mainPerlinNoise->generateNoiseOctaves($this->mainNoiseRegion, $O3006954518737917268 * 4, 0, $O8823528619564163764 * 4, 5, 33, 5, 11.406866666666668, 4.277575000000001, 11.406866666666668);
        $this->mainNoiseRegion = $O9012890364644091554;
        $O3651896177985542241 = $this->minLimitPerlinNoise->generateNoiseOctaves($this->minLimitRegion, $O3006954518737917268 * 4, 0, $O8823528619564163764 * 4, 5, 33, 5, 684.412, 684.412, 684.412);
        $this->minLimitRegion = $O3651896177985542241;
        $O9186843936144485976 = $this->maxLimitPerlinNoise->generateNoiseOctaves($this->maxLimitRegion, $O3006954518737917268 * 4, 0, $O8823528619564163764 * 4, 5, 33, 5, 684.412, 684.412, 684.412);
        $this->maxLimitRegion = $O9186843936144485976;
        $O5624651027584913111 = $this->heightMap;
        $O6649289243323889121 = 0;
        $O5967990459726301160 = 0;
        $O9020212922959878560 = 0;
        O6312445810146391912:
        if (!($O9020212922959878560 < 5)) {
            $O9020212922959878560 = 0;
            O0149676996163650791:
            if (!($O9020212922959878560 < 4)) {
                $O7665711374173273331 = 0;
                O4253426468591292608:
                if (!($O7665711374173273331 < 16)) {
                    foreach ($this->generationPopulators as $O3715134213494893945) {
                        $O3715134213494893945->populate($this->level, $O3006954518737917268, $O8823528619564163764, $this->random, $O6004335627897345490);
                    }
                    // [PHPDeobfuscator] Implied return
                    return;
                }
                $O1129998551777762293 = 0;
                O6843606359630722559:
                if (!($O1129998551777762293 < 16)) {
                    $O7665711374173273331++;
                    goto O4253426468591292608;
                }
                $O7567338628361095428 = $this->selector->pickBiome($O6010552028301778655 | $O7665711374173273331, $O4646578898999784700 | $O1129998551777762293);
                $O6004335627897345490->setBiomeId($O7665711374173273331, $O1129998551777762293, $O7567338628361095428->getId());
                $O1129998551777762293++;
                goto O6843606359630722559;
            }
            $O4464991853383652143 = $O9020212922959878560 * 5;
            $O2237900097353682412 = ($O9020212922959878560 + 1) * 5;
            $O5737973175376458757 = 0;
            O7125147203763000607:
            if (!($O5737973175376458757 < 4)) {
                ++$O9020212922959878560;
                goto O0149676996163650791;
            }
            $O7004298064816722397 = ($O4464991853383652143 + $O5737973175376458757) * 33;
            $O7444794456243817350 = ($O4464991853383652143 + $O5737973175376458757 + 1) * 33;
            $O9235434319380393886 = ($O2237900097353682412 + $O5737973175376458757) * 33;
            $O3224265390239426959 = ($O2237900097353682412 + $O5737973175376458757 + 1) * 33;
            $O3858060630884451834 = 0;
            O2664108175097960046:
            if (!($O3858060630884451834 < 32)) {
                ++$O5737973175376458757;
                goto O7125147203763000607;
            }
            $O8325960659580645859 = $O5624651027584913111[$O7004298064816722397 + $O3858060630884451834];
            $O3112928735185904101 = $O5624651027584913111[$O7444794456243817350 + $O3858060630884451834];
            $O7071482998866918720 = $O5624651027584913111[$O9235434319380393886 + $O3858060630884451834];
            $O2883867355496763257 = $O5624651027584913111[$O3224265390239426959 + $O3858060630884451834];
            $O0537098401336809856 = ($O5624651027584913111[$O7004298064816722397 + $O3858060630884451834 + 1] - $O8325960659580645859) * 0.125;
            $O7765958345248486239 = ($O5624651027584913111[$O7444794456243817350 + $O3858060630884451834 + 1] - $O3112928735185904101) * 0.125;
            $O3560407322042527239 = ($O5624651027584913111[$O9235434319380393886 + $O3858060630884451834 + 1] - $O7071482998866918720) * 0.125;
            $O1499633767192497033 = ($O5624651027584913111[$O3224265390239426959 + $O3858060630884451834 + 1] - $O2883867355496763257) * 0.125;
            $O1247419137838853110 = 0;
            O9698269471736453987:
            if (!($O1247419137838853110 < 8)) {
                ++$O3858060630884451834;
                goto O2664108175097960046;
            }
            $O4809098780398373306 = $O8325960659580645859;
            $O5393032431801137261 = $O3112928735185904101;
            $O8297103448214261248 = ($O7071482998866918720 - $O8325960659580645859) * 0.25;
            $O2679902541181439043 = ($O2883867355496763257 - $O3112928735185904101) * 0.25;
            $O1186542738070030896 = 0;
            O4728358348891508851:
            if (!($O1186542738070030896 < 4)) {
                $O8325960659580645859 += $O0537098401336809856;
                $O3112928735185904101 += $O7765958345248486239;
                $O7071482998866918720 += $O3560407322042527239;
                $O2883867355496763257 += $O1499633767192497033;
                ++$O1247419137838853110;
                goto O9698269471736453987;
            }
            $O9616226985553264431 = ($O5393032431801137261 - $O4809098780398373306) * 0.25;
            $O0512174678510442738 = $O4809098780398373306 - $O9616226985553264431;
            $O2825462238249186933 = 0;
            O4305433555745052918:
            if (!($O2825462238249186933 < 4)) {
                $O4809098780398373306 += $O8297103448214261248;
                $O5393032431801137261 += $O2679902541181439043;
                ++$O1186542738070030896;
                goto O4728358348891508851;
            }
            if (($O0512174678510442738 += $O9616226985553264431) > 0.0) {
                $O6004335627897345490->setBlockId($O9020212922959878560 * 4 + $O1186542738070030896, $O3858060630884451834 * 8 + $O1247419137838853110, $O5737973175376458757 * 4 + $O2825462238249186933, Block::STONE);
                goto O6342965663570457413;
            }
            if ($O3858060630884451834 * 8 + $O1247419137838853110 <= $this->seaHeight) {
                $O6004335627897345490->setBlockId($O9020212922959878560 * 4 + $O1186542738070030896, $O3858060630884451834 * 8 + $O1247419137838853110, $O5737973175376458757 * 4 + $O2825462238249186933, Block::STILL_WATER);
                goto O8062803118278624659;
            }
            O8062803118278624659:
            O6342965663570457413:
            ++$O2825462238249186933;
            goto O4305433555745052918;
        }
        $O5737973175376458757 = 0;
        O3177241354149354550:
        if (!($O5737973175376458757 < 5)) {
            ++$O9020212922959878560;
            goto O6312445810146391912;
        }
        $O4292845385997978183 = 0.0;
        $O7571164431142100323 = 0.0;
        $O5892044668173156151 = 0.0;
        $O7567338628361095428 = $this->selector->pickBiome($O6010552028301778655 + $O9020212922959878560 * 4, $O4646578898999784700 + $O5737973175376458757 * 4);
        $O8068136524272057455 = -2;
        O3988619098778475068:
        if (!($O8068136524272057455 <= 2)) {
            $O4292845385997978183 /= $O5892044668173156151;
            $O7571164431142100323 /= $O5892044668173156151;
            $O4292845385997978183 = $O4292845385997978183 * 0.9 + 0.1;
            $O7571164431142100323 = ($O7571164431142100323 * 4.0 - 1.0) / 8.0;
            $O3616512311770122577 = $O9226524671047122064[$O5967990459726301160] / 8000.0;
            if (!($O3616512311770122577 < 0.0)) {
                goto O9779058583993589192;
            }
            $O3616512311770122577 = -$O3616512311770122577 * 0.3;
            O9779058583993589192:
            $O3616512311770122577 = $O3616512311770122577 * 3.0 - 2.0;
            if ($O3616512311770122577 < 0.0) {
                $O3616512311770122577 /= 2.0;
                if (!($O3616512311770122577 < -1.0)) {
                    goto O9550477111930645003;
                }
                $O3616512311770122577 = -1.0;
                O9550477111930645003:
                $O3616512311770122577 /= 1.4;
                $O3616512311770122577 /= 2.0;
                goto O3084725309438099521;
            }
            if (!($O3616512311770122577 > 1.0)) {
                goto O1458350947278744528;
            }
            $O3616512311770122577 = 1.0;
            O1458350947278744528:
            $O3616512311770122577 /= 8.0;
            O3084725309438099521:
            ++$O5967990459726301160;
            $O9959312453599414788 = $O7571164431142100323;
            $O7498494143339960521 = $O4292845385997978183;
            $O9959312453599414788 += $O3616512311770122577 * 0.2;
            $O9959312453599414788 = $O9959312453599414788 * 8.5 / 8.0;
            $O3640300007177275751 = 8.5 + $O9959312453599414788 * 4.0;
            $O3858060630884451834 = 0;
            O7089719056105030687:
            if (!($O3858060630884451834 < 33)) {
                ++$O5737973175376458757;
                goto O3177241354149354550;
            }
            $O6211597836110105466 = ((float) $O3858060630884451834 - $O3640300007177275751) * 12.0 * 128.0 / 256.0 / $O7498494143339960521;
            if (!($O6211597836110105466 < 0.0)) {
                goto O7840814412200038492;
            }
            $O6211597836110105466 *= 4.0;
            O7840814412200038492:
            $O2418711942438659290 = $O3651896177985542241[$O6649289243323889121] / 512.0;
            $O5007269604467047294 = $O9186843936144485976[$O6649289243323889121] / 512.0;
            $O5934548610710033443 = ($O9012890364644091554[$O6649289243323889121] / 10.0 + 1.0) / 2.0;
            $O1377309982886884395 = MathHelper::denormalizeClamp($O2418711942438659290, $O5007269604467047294, $O5934548610710033443) - $O6211597836110105466;
            if (!($O3858060630884451834 > 29)) {
                goto O0749933129124609756;
            }
            $O1829951189548741504 = (float) ($O3858060630884451834 - 29) / 3.0;
            $O1377309982886884395 = $O1377309982886884395 * (1.0 - $O1829951189548741504) + -10.0 * $O1829951189548741504;
            O0749933129124609756:
            $O5624651027584913111[$O6649289243323889121] = $O1377309982886884395;
            ++$O6649289243323889121;
            ++$O3858060630884451834;
            goto O7089719056105030687;
        }
        $O3021955987398925116 = -2;
        O8251669115292616525:
        if (!($O3021955987398925116 <= 2)) {
            ++$O8068136524272057455;
            goto O3988619098778475068;
        }
        $O5193213415356979810 = $this->selector->pickBiome($O6010552028301778655 + $O9020212922959878560 * 4 + $O8068136524272057455, $O4646578898999784700 + $O5737973175376458757 * 4 + $O3021955987398925116);
        $O9824663135431470031 = $O5193213415356979810->getBaseHeight();
        $O6985425497636876191 = $O5193213415356979810->getHeightVariation();
        $O5702681580571291052 = self::$BIOME_WEIGHTS[$O8068136524272057455 + 2 + ($O3021955987398925116 + 2) * 5] / ($O9824663135431470031 + 2.0);
        if (!($O5193213415356979810->getBaseHeight() > $O7567338628361095428->getBaseHeight())) {
            goto O4875277406607169829;
        }
        $O5702681580571291052 /= 2.0;
        O4875277406607169829:
        $O4292845385997978183 += $O6985425497636876191 * $O5702681580571291052;
        $O7571164431142100323 += $O9824663135431470031 * $O5702681580571291052;
        $O5892044668173156151 += $O5702681580571291052;
        ++$O3021955987398925116;
        goto O8251669115292616525;
    }
    public function populateChunk($O3006954518737917268, $O8823528619564163764)
    {
        $this->random->setSeed(0xdeadbeef ^ $O3006954518737917268 << 8 ^ $O8823528619564163764 ^ $this->level->getSeed());
        foreach ($this->populators as $O3715134213494893945) {
            $O3715134213494893945->populate($this->level, $O3006954518737917268, $O8823528619564163764, $this->random);
        }
        $O6004335627897345490 = $this->level->getChunk($O3006954518737917268, $O8823528619564163764);
        $O7567338628361095428 = Biome::getBiome($O6004335627897345490->getBiomeId(7, 7));
        $O7567338628361095428->populateChunk($this->level, $O3006954518737917268, $O8823528619564163764, $this->random);
    }
    public static function getSpawn() : Vector3
    {
        return new Vector3(127, 90, 127);
    }
}

Function Calls

None

Variables

None

Stats

MD5 05dd01ac2d2bb5c45dc212a394d6c257
Eval Count 0
Decode Time 54 ms