PocketMine-MP
5.37.4 git-dbb3eefc44d5dddb20f540594fbda61467f50873
Loading...
Searching...
No Matches
FireworkRocketType.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
22
declare(strict_types=1);
23
24
namespace
pocketmine\item
;
25
26
use
pocketmine\world\sound\FireworkExplosionSound
;
27
use
pocketmine\world\sound\FireworkLargeExplosionSound
;
28
use
pocketmine\world\sound\Sound
;
29
30
enum
FireworkRocketType{
31
case
SMALL_BALL;
32
case
LARGE_BALL;
33
case
STAR;
34
case
CREEPER;
35
case
BURST;
36
37
public
function
getExplosionSound() : Sound{
38
return match($this){
39
self::SMALL_BALL,
40
self::STAR,
41
self::CREEPER,
42
self::BURST =>
new
FireworkExplosionSound(),
43
self::LARGE_BALL =>
new
FireworkLargeExplosionSound(),
44
};
45
}
46
}
pocketmine\world\sound\FireworkExplosionSound
Definition
FireworkExplosionSound.php:30
pocketmine\world\sound\FireworkLargeExplosionSound
Definition
FireworkLargeExplosionSound.php:30
pocketmine\world\sound\Sound
Definition
Sound.php:29
pocketmine\item
Definition
Apple.php:24
src
item
FireworkRocketType.php
Generated by
1.12.0