PocketMine-MP 5.17.1 git-df4ada81e5d74a14046f27cf44a37dcee69d657e
ActorEvent.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 ActorEvent{
18 private function __construct(){
19 //NOOP
20 }
21
22 public const JUMP = 1;
23 public const HURT_ANIMATION = 2;
24 public const DEATH_ANIMATION = 3;
25 public const ARM_SWING = 4;
26 public const STOP_ATTACK = 5;
27 public const TAME_FAIL = 6;
28 public const TAME_SUCCESS = 7;
29 public const SHAKE_WET = 8;
30 public const USE_ITEM = 9;
31 public const EAT_GRASS_ANIMATION = 10;
32 public const FISH_HOOK_BUBBLE = 11;
33 public const FISH_HOOK_POSITION = 12;
34 public const FISH_HOOK_HOOK = 13;
35 public const FISH_HOOK_TEASE = 14;
36 public const SQUID_INK_CLOUD = 15;
37 public const ZOMBIE_VILLAGER_CURE = 16;
38 public const PLAY_AMBIENT_SOUND = 17;
39 public const RESPAWN = 18;
40 public const IRON_GOLEM_OFFER_FLOWER = 19;
41 public const IRON_GOLEM_WITHDRAW_FLOWER = 20;
42 public const LOVE_PARTICLES = 21; //breeding
43 public const VILLAGER_ANGRY = 22;
44 public const VILLAGER_HAPPY = 23;
45 public const WITCH_SPELL_PARTICLES = 24;
46 public const FIREWORK_PARTICLES = 25;
47 public const IN_LOVE_PARTICLES = 26;
48 public const SILVERFISH_SPAWN_ANIMATION = 27;
49 public const GUARDIAN_ATTACK = 28;
50 public const WITCH_DRINK_POTION = 29;
51 public const WITCH_THROW_POTION = 30;
52 public const MINECART_TNT_PRIME_FUSE = 31;
53 public const CREEPER_PRIME_FUSE = 32;
54 public const AIR_SUPPLY_EXPIRED = 33;
55 public const PLAYER_ADD_XP_LEVELS = 34;
56 public const ELDER_GUARDIAN_CURSE = 35;
57 public const AGENT_ARM_SWING = 36;
58 public const ENDER_DRAGON_DEATH = 37;
59 public const DUST_PARTICLES = 38; //not sure what this is
60 public const ARROW_SHAKE = 39;
61
62 public const EATING_ITEM = 57;
63
64 public const BABY_ANIMAL_FEED = 60; //green particles, like bonemeal on crops
65 public const DEATH_SMOKE_CLOUD = 61;
66 public const COMPLETE_TRADE = 62;
67 public const REMOVE_LEASH = 63; //data 1 = cut leash
68 public const CARAVAN_UPDATED = 64;
69 public const CONSUME_TOTEM = 65;
70 public const PLAYER_CHECK_TREASURE_HUNTER_ACHIEVEMENT = 66; //mojang...
71 public const ENTITY_SPAWN = 67; //used for MinecraftEventing stuff, not needed
72 public const DRAGON_PUKE = 68; //they call this puke particles
73 public const ITEM_ENTITY_MERGE = 69;
74 public const START_SWIM = 70;
75 public const BALLOON_POP = 71;
76 public const TREASURE_HUNT = 72;
77 public const AGENT_SUMMON = 73;
78 public const CHARGED_ITEM = 74;
79 public const FALL = 75;
80 public const GROW_UP = 76;
81 public const VIBRATION_DETECTED = 77;
82 public const DRINK_MILK = 78;
83
84 //TODO: add more events
85}