PocketMine-MP 5.28.1 git-88cdc2eb67c40075559c3ef51418b418cd5488e9
Loading...
Searching...
No Matches
BiomeDefinitionEntry.php
1<?php
2
3/*
4 * This file is part of BedrockProtocol.
5 * Copyright (C) 2014-2022 PocketMine Team <https://github.com/pmmp/BedrockProtocol>
6 *
7 * BedrockProtocol is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU Lesser General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 */
12
13declare(strict_types=1);
14
15namespace pocketmine\network\mcpe\protocol\types\biome;
16
19
21
26 public function __construct(
27 private string $biomeName,
28 private ?int $id,
29 private float $temperature,
30 private float $downfall,
31 private float $redSporeDensity,
32 private float $blueSporeDensity,
33 private float $ashDensity,
34 private float $whiteAshDensity,
35 private float $depth,
36 private float $scale,
37 private Color $mapWaterColor,
38 private bool $rain,
39 private ?array $tags,
40 private ?BiomeDefinitionChunkGenData $chunkGenData = null
41 ){}
42
43 public function getBiomeName() : string{ return $this->biomeName; }
44
45 public function getId() : ?int{ return $this->id; }
46
47 public function getTemperature() : float{ return $this->temperature; }
48
49 public function getDownfall() : float{ return $this->downfall; }
50
51 public function getRedSporeDensity() : float{ return $this->redSporeDensity; }
52
53 public function getBlueSporeDensity() : float{ return $this->blueSporeDensity; }
54
55 public function getAshDensity() : float{ return $this->ashDensity; }
56
57 public function getWhiteAshDensity() : float{ return $this->whiteAshDensity; }
58
59 public function getDepth() : float{ return $this->depth; }
60
61 public function getScale() : float{ return $this->scale; }
62
63 public function getMapWaterColor() : Color{ return $this->mapWaterColor; }
64
65 public function hasRain() : bool{ return $this->rain; }
66
71 public function getTags() : ?array{ return $this->tags; }
72
73 public function getChunkGenData() : ?BiomeDefinitionChunkGenData{ return $this->chunkGenData; }
74}
__construct(private string $biomeName, private ?int $id, private float $temperature, private float $downfall, private float $redSporeDensity, private float $blueSporeDensity, private float $ashDensity, private float $whiteAshDensity, private float $depth, private float $scale, private Color $mapWaterColor, private bool $rain, private ?array $tags, private ?BiomeDefinitionChunkGenData $chunkGenData=null)
getTags()