PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
Loading...
Searching...
No Matches
SuspiciousStewType.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\item;
25
28
30 case POPPY;
31 case CORNFLOWER;
32 case TULIP;
33 case AZURE_BLUET;
34 case LILY_OF_THE_VALLEY;
35 case DANDELION;
36 case BLUE_ORCHID;
37 case ALLIUM;
38 case OXEYE_DAISY;
39 case WITHER_ROSE;
40
45 public function getEffects() : array{
46 return match($this){
47 self::POPPY => [new EffectInstance(VanillaEffects::NIGHT_VISION(), 80)],
48 self::CORNFLOWER => [new EffectInstance(VanillaEffects::JUMP_BOOST(), 80)],
49 self::TULIP => [new EffectInstance(VanillaEffects::WEAKNESS(), 140)],
50 self::AZURE_BLUET => [new EffectInstance(VanillaEffects::BLINDNESS(), 120)],
51 self::LILY_OF_THE_VALLEY => [new EffectInstance(VanillaEffects::POISON(), 200)],
52 self::DANDELION,
53 self::BLUE_ORCHID => [new EffectInstance(VanillaEffects::SATURATION(), 6)],
54 self::ALLIUM => [new EffectInstance(VanillaEffects::FIRE_RESISTANCE(), 40)],
55 self::OXEYE_DAISY => [new EffectInstance(VanillaEffects::REGENERATION(), 120)],
56 self::WITHER_ROSE => [new EffectInstance(VanillaEffects::WITHER(), 120)]
57 };
58 }