GenisysPro  for Minecraft PE/Windows 10 v1.1.x
Feature-rich server software for Minecraft PE and Windows 10 Edition
SwampBiome 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 ( )

SwampBiome constructor.

34  {
35  parent::__construct();
36 
37  $flower = new Flower();
38  $flower->setBaseAmount(8);
39  $flower->addType([Block::RED_FLOWER, FlowerBlock::TYPE_BLUE_ORCHID]);
40 
41  $this->addPopulator($flower);
42 
43  $lilypad = new LilyPad();
44  $lilypad->setBaseAmount(4);
45  $this->addPopulator($lilypad);
46 
47  $this->setElevation(62, 63);
48 
49  $this->temperature = 0.8;
50  $this->rainfall = 0.9;
51  }

Member Function Documentation

◆ getName()

getName ( )
Returns
string
56  : string{
57  return "Swamp";
58  }

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