PocketMine-MP 5.15.1 git-5ef247620a7c6301a849b54e5ef1009217729fc8
LevelEvent.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;
16
17final class LevelEvent{
18 private function __construct(){
19 //NOOP
20 }
21
22 public const SOUND_CLICK = 1000;
23 public const SOUND_CLICK_FAIL = 1001;
24 public const SOUND_SHOOT = 1002;
25 public const SOUND_DOOR = 1003;
26 public const SOUND_FIZZ = 1004;
27 public const SOUND_IGNITE = 1005;
28 public const SOUND_PLAY_RECORDING = 1006;
29 public const SOUND_GHAST = 1007;
30 public const SOUND_GHAST_SHOOT = 1008;
31 public const SOUND_BLAZE_SHOOT = 1009;
32 public const SOUND_DOOR_BUMP = 1010;
33
34 public const SOUND_DOOR_CRASH = 1012;
35
36 public const SOUND_ZOMBIE_INFECTED = 1016;
37 public const SOUND_ZOMBIE_CONVERT = 1017;
38 public const SOUND_ENDERMAN_TELEPORT = 1018;
39
40 public const SOUND_ANVIL_BREAK = 1020;
41 public const SOUND_ANVIL_USE = 1021;
42 public const SOUND_ANVIL_FALL = 1022;
43
44 public const SOUND_POP = 1030;
45
46 public const SOUND_PORTAL = 1032;
47
48 public const SOUND_ITEMFRAME_ADD_ITEM = 1040;
49 public const SOUND_ITEMFRAME_REMOVE = 1041;
50 public const SOUND_ITEMFRAME_PLACE = 1042;
51 public const SOUND_ITEMFRAME_REMOVE_ITEM = 1043;
52 public const SOUND_ITEMFRAME_ROTATE_ITEM = 1044;
53
54 public const SOUND_CAMERA = 1050;
55 public const SOUND_ORB = 1051;
56 public const SOUND_TOTEM = 1052;
57
58 public const SOUND_ARMOR_STAND_BREAK = 1060;
59 public const SOUND_ARMOR_STAND_HIT = 1061;
60 public const SOUND_ARMOR_STAND_FALL = 1062;
61 public const SOUND_ARMOR_STAND_PLACE = 1063;
62 public const SOUND_POINTED_DRIPSTONE_FALL = 1064;
63 public const SOUND_DYE_USED = 1065;
64 public const SOUND_INK_SAC_USED = 1066;
65
66 public const PARTICLE_SHOOT = 2000;
67 public const PARTICLE_DESTROY = 2001; //sound + particles
68 public const PARTICLE_SPLASH = 2002;
69 public const PARTICLE_EYE_DESPAWN = 2003;
70 public const PARTICLE_SPAWN = 2004;
71 public const BONE_MEAL_USE = 2005; //sound + green particles
72 public const GUARDIAN_CURSE = 2006;
73 public const PARTICLE_DEATH_SMOKE = 2007;
74 public const PARTICLE_BLOCK_FORCE_FIELD = 2008;
75 public const PARTICLE_PROJECTILE_HIT = 2009;
76 public const PARTICLE_DRAGON_EGG_TELEPORT = 2010;
77 public const PARTICLE_CROP_EATEN = 2011;
78 public const PARTICLE_CRITICAL_HIT = 2012;
79 public const PARTICLE_ENDERMAN_TELEPORT = 2013;
80 public const PARTICLE_PUNCH_BLOCK = 2014;
81 public const PARTICLE_BUBBLE = 2015;
82 public const PARTICLE_EVAPORATE = 2016;
83 public const PARTICLE_ARMOR_STAND_DESTROY = 2017;
84 public const PARTICLE_EGG_PUNCH = 2018;
85 public const PARTICLE_EGG_BREAK = 2019;
86 public const PARTICLE_ICE_EVAPORATE = 2020;
87 public const PARTICLE_DESTROY_NO_SOUND = 2021;
88 public const PARTICLE_KNOCKBACK_ROAR = 2022; //spews out tons of white particles
89 public const PARTICLE_TELEPORT_TRAIL = 2023;
90 public const PARTICLE_POINT_CLOUD = 2024;
91 public const PARTICLE_EXPLODE = 2025; //data >= 2 = huge explode seed, otherwise huge explode
92 public const PARTICLE_BLOCK_EXPLODE = 2026;
93 public const PARTICLE_VIBRATION_SIGNAL = 2027;
94 public const PARTICLE_DRIPSTONE_DRIP = 2028;
95 public const PARTICLE_FIZZ = 2029;
96 public const COPPER_WAX_ON = 2030; //sound + particles
97 public const COPPER_WAX_OFF = 2031; //sound + particles
98 public const COPPER_SCRAPE = 2032; //sound + particles
99 public const PARTICLE_ELECTRIC_SPARK = 2033; //lightning rod
100 public const PARTICLE_TURTLE_EGG_GROW = 2034;
101 public const PARTICLE_SCULK_SHRIEK = 2035;
102 public const PARTICLE_SCULK_CATALYST_BLOOM = 2036;
103
104 public const PARTICLE_DUST_PLUME = 2040;
105
106 public const START_RAIN = 3001;
107 public const START_THUNDER = 3002;
108 public const STOP_RAIN = 3003;
109 public const STOP_THUNDER = 3004;
110 public const PAUSE_GAME = 3005; //data: 1 to pause, 0 to resume
111 public const PAUSE_GAME_NO_SCREEN = 3006; //data: 1 to pause, 0 to resume - same effect as normal pause but without screen
112 public const SET_GAME_SPEED = 3007; //x coordinate of pos = scale factor (default 1.0)
113
114 public const REDSTONE_TRIGGER = 3500;
115 public const CAULDRON_EXPLODE = 3501;
116 public const CAULDRON_DYE_ARMOR = 3502;
117 public const CAULDRON_CLEAN_ARMOR = 3503;
118 public const CAULDRON_FILL_POTION = 3504;
119 public const CAULDRON_TAKE_POTION = 3505;
120 public const CAULDRON_FILL_WATER = 3506;
121 public const CAULDRON_TAKE_WATER = 3507;
122 public const CAULDRON_ADD_DYE = 3508;
123 public const CAULDRON_CLEAN_BANNER = 3509; //particle + sound
124 public const PARTICLE_CAULDRON_FLUSH = 3510;
125 public const PARTICLE_AGENT_SPAWN = 3511;
126 public const SOUND_CAULDRON_FILL_LAVA = 3512;
127 public const SOUND_CAULDRON_TAKE_LAVA = 3513;
128 public const SOUND_CAULDRON_FILL_POWDER_SNOW = 3514;
129 public const SOUND_CAULDRON_TAKE_POWDER_SNOW = 3515;
130
131 public const BLOCK_START_BREAK = 3600;
132 public const BLOCK_STOP_BREAK = 3601;
133 public const BLOCK_BREAK_SPEED = 3602;
134 public const PARTICLE_PUNCH_BLOCK_DOWN = 3603;
135 public const PARTICLE_PUNCH_BLOCK_UP = 3604;
136 public const PARTICLE_PUNCH_BLOCK_NORTH = 3605;
137 public const PARTICLE_PUNCH_BLOCK_SOUTH = 3606;
138 public const PARTICLE_PUNCH_BLOCK_WEST = 3607;
139 public const PARTICLE_PUNCH_BLOCK_EAST = 3608;
140 public const PARTICLE_SHOOT_WHITE_SMOKE = 3609;
141 public const PARTICLE_BREEZE_WIND_EXPLOSION = 3610;
142 public const PARTICLE_TRIAL_SPAWNER_DETECTION = 3611;
143 public const PARTICLE_TRIAL_SPAWNER_SPAWNING = 3612;
144 public const PARTICLE_TRIAL_SPAWNER_EJECTING = 3613;
145 public const PARTICLE_WIND_EXPLOSION = 3614;
146
147 public const SET_DATA = 4000;
148
149 public const PLAYERS_SLEEPING = 9800;
150 public const NUMBER_OF_SLEEPING_PLAYERS = 9801;
151
152 public const JUMP_PREVENTED = 9810;
153 public const ANIMATION_VAULT_ACTIVATE = 9811;
154 public const ANIMATION_VAULT_DEACTIVATE = 9812;
155 public const ANIMATION_VAULT_EJECT_ITEM = 9813;
156
157 public const ADD_PARTICLE_MASK = 0x4000;
158}