GenisysPro  for Minecraft PE/Windows 10 v1.1.x
Feature-rich server software for Minecraft PE and Windows 10 Edition
PlainBiome Class Reference

Public Member Functions

 __construct ()
 
 getName ()
 
- Public Member Functions inherited from GrassyBiome
 __construct ()
 
- Public Member Functions inherited from Biome
 clearPopulators ()
 
 addPopulator (Populator $populator)
 
 removePopulator ($class)
 
 populateChunk (ChunkManager $level, $chunkX, $chunkZ, Random $random)
 
 getPopulators ()
 
 setId ($id)
 
 getId ()
 
 getName ()
 
 getMinElevation ()
 
 getMaxElevation ()
 
 setElevation ($min, $max)
 
 getGroundCover ()
 
 setGroundCover (array $covers)
 
 getTemperature ()
 
 getRainfall ()
 

Additional Inherited Members

- Static Public Member Functions inherited from Biome
static init ()
 
static getBiome ($id)
 
- Data Fields inherited from Biome
const OCEAN = 0
 
const PLAINS = 1
 
const DESERT = 2
 
const MOUNTAINS = 3
 
const FOREST = 4
 
const TAIGA = 5
 
const SWAMP = 6
 
const RIVER = 7
 
const HELL = 8
 
const END = 9
 
const FROZEN_OCEAN = 10
 
const FROZEN_RIVER = 11
 
const ICE_PLAINS = 12
 
const ICE_MOUNTAINS = 13
 
const MUSHROOM_ISLAND = 14
 
const MUSHROOM_ISLAND_SHORE = 15
 
const BEACH = 16
 
const DESERT_HILLS = 17
 
const FOREST_HILLS = 18
 
const TAIGA_HILLS = 19
 
const SMALL_MOUNTAINS = 20
 
const BIRCH_FOREST = 27
 
const BIRCH_FOREST_HILLS = 28
 
const ROOFED_FOREST = 29
 
const COLD_TAIGA = 30
 
const COLD_TAIGA_HILLS = 31
 
const MEGA_TAIGA = 32
 
const MEGA_TAIGA_HILLS = 33
 
const EXTREME_HILLS_PLUS = 34
 
const SAVANNA = 35
 
const SAVANNA_PLATEAU = 36
 
const MESA = 37
 
const MESA_PLATEAU_F = 38
 
const MESA_PLATEAU = 39
 
const VOID = 127
 
const MAX_BIOMES = 256
 
- Static Protected Member Functions inherited from Biome
static register ($id, Biome $biome)
 
- Protected Attributes inherited from Biome
 $rainfall = 0.5
 
 $temperature = 0.5
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

PlainBiome constructor.

37  {
38  parent::__construct();
39 
40  $sugarcane = new Sugarcane();
41  $sugarcane->setBaseAmount(6);
42  $tallGrass = new TallGrass();
43  $tallGrass->setBaseAmount(25);
44  $waterPit = new WaterPit();
45  $waterPit->setBaseAmount(9999);
46  $lilyPad = new LilyPad();
47  $lilyPad->setBaseAmount(8);
48 
49  $flower = new Flower();
50  $flower->setBaseAmount(2);
51  $flower->addType([Block::DANDELION, 0]);
52  $flower->addType([Block::RED_FLOWER, FlowerBlock::TYPE_POPPY]);
53  $flower->addType([Block::RED_FLOWER, FlowerBlock::TYPE_AZURE_BLUET]);
54  $flower->addType([Block::RED_FLOWER, FlowerBlock::TYPE_RED_TULIP]);
55  $flower->addType([Block::RED_FLOWER, FlowerBlock::TYPE_ORANGE_TULIP]);
56  $flower->addType([Block::RED_FLOWER, FlowerBlock::TYPE_WHITE_TULIP]);
57  $flower->addType([Block::RED_FLOWER, FlowerBlock::TYPE_PINK_TULIP]);
58  $flower->addType([Block::RED_FLOWER, FlowerBlock::TYPE_OXEYE_DAISY]);
59 
60  $this->addPopulator($sugarcane);
61  $this->addPopulator($tallGrass);
62  $this->addPopulator($flower);
63  $this->addPopulator($waterPit);
64  $this->addPopulator($lilyPad);
65 
66  $this->setElevation(61, 68);
67 
68  $this->temperature = 0.8;
69  $this->rainfall = 0.4;
70  }

Member Function Documentation

◆ getName()

getName ( )
Returns
string
75  : string{
76  return "Plains";
77  }

The documentation for this class was generated from the following file: