PocketMine-MP 5.35.1 git-e32e836dad793a3a3c8ddd8927c00e112b1e576a
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 $foliageSnow,
32 private float $depth,
33 private float $scale,
34 private Color $mapWaterColor,
35 private bool $rain,
36 private ?array $tags,
37 private ?BiomeDefinitionChunkGenData $chunkGenData = null
38 ){}
39
40 public function getBiomeName() : string{ return $this->biomeName; }
41
42 public function getId() : int{ return $this->id; }
43
44 public function getTemperature() : float{ return $this->temperature; }
45
46 public function getDownfall() : float{ return $this->downfall; }
47
48 public function getFoliageSnow() : float{ return $this->foliageSnow; }
49
50 public function getDepth() : float{ return $this->depth; }
51
52 public function getScale() : float{ return $this->scale; }
53
54 public function getMapWaterColor() : Color{ return $this->mapWaterColor; }
55
56 public function hasRain() : bool{ return $this->rain; }
57
62 public function getTags() : ?array{ return $this->tags; }
63
64 public function getChunkGenData() : ?BiomeDefinitionChunkGenData{ return $this->chunkGenData; }
65}
__construct(private string $biomeName, private int $id, private float $temperature, private float $downfall, private float $foliageSnow, private float $depth, private float $scale, private Color $mapWaterColor, private bool $rain, private ?array $tags, private ?BiomeDefinitionChunkGenData $chunkGenData=null)
getTags()