PocketMine-MP 5.18.1 git-9381fc4172e5dce4cada1cb356050c8a2ab57b94
EffectIdMap.php
1<?php
2
3/*
4 *
5 * ____ _ _ __ __ _ __ __ ____
6 * | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
7 * | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
8 * | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
9 * |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
10 *
11 * This program is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * @author PocketMine Team
17 * @link http://www.pocketmine.net/
18 *
19 *
20 */
21
22declare(strict_types=1);
23
24namespace pocketmine\data\bedrock;
25
28use pocketmine\utils\SingletonTrait;
29
30final class EffectIdMap{
31 use SingletonTrait;
33 use IntSaveIdMapTrait;
34
35 private function __construct(){
36 $this->register(EffectIds::SPEED, VanillaEffects::SPEED());
37 $this->register(EffectIds::SLOWNESS, VanillaEffects::SLOWNESS());
38 $this->register(EffectIds::HASTE, VanillaEffects::HASTE());
39 $this->register(EffectIds::MINING_FATIGUE, VanillaEffects::MINING_FATIGUE());
40 $this->register(EffectIds::STRENGTH, VanillaEffects::STRENGTH());
41 $this->register(EffectIds::INSTANT_HEALTH, VanillaEffects::INSTANT_HEALTH());
42 $this->register(EffectIds::INSTANT_DAMAGE, VanillaEffects::INSTANT_DAMAGE());
43 $this->register(EffectIds::JUMP_BOOST, VanillaEffects::JUMP_BOOST());
44 $this->register(EffectIds::NAUSEA, VanillaEffects::NAUSEA());
45 $this->register(EffectIds::REGENERATION, VanillaEffects::REGENERATION());
46 $this->register(EffectIds::RESISTANCE, VanillaEffects::RESISTANCE());
47 $this->register(EffectIds::FIRE_RESISTANCE, VanillaEffects::FIRE_RESISTANCE());
48 $this->register(EffectIds::WATER_BREATHING, VanillaEffects::WATER_BREATHING());
49 $this->register(EffectIds::INVISIBILITY, VanillaEffects::INVISIBILITY());
50 $this->register(EffectIds::BLINDNESS, VanillaEffects::BLINDNESS());
51 $this->register(EffectIds::NIGHT_VISION, VanillaEffects::NIGHT_VISION());
52 $this->register(EffectIds::HUNGER, VanillaEffects::HUNGER());
53 $this->register(EffectIds::WEAKNESS, VanillaEffects::WEAKNESS());
54 $this->register(EffectIds::POISON, VanillaEffects::POISON());
55 $this->register(EffectIds::WITHER, VanillaEffects::WITHER());
56 $this->register(EffectIds::HEALTH_BOOST, VanillaEffects::HEALTH_BOOST());
57 $this->register(EffectIds::ABSORPTION, VanillaEffects::ABSORPTION());
58 $this->register(EffectIds::SATURATION, VanillaEffects::SATURATION());
59 $this->register(EffectIds::LEVITATION, VanillaEffects::LEVITATION());
60 $this->register(EffectIds::FATAL_POISON, VanillaEffects::FATAL_POISON());
61 $this->register(EffectIds::CONDUIT_POWER, VanillaEffects::CONDUIT_POWER());
62 //TODO: SLOW_FALLING
63 //TODO: BAD_OMEN
64 //TODO: VILLAGE_HERO
65 $this->register(EffectIds::DARKNESS, VanillaEffects::DARKNESS());
66 }
67}