Name | Value | Notes |
HOOK_BLOCK_SPREAD |
0 |
Called when a block spreads based on world conditions |
HOOK_BLOCK_TO_PICKUPS |
1 |
Called when a block has been dug and is being converted to pickups. The server has provided the default pickups and the plugins may modify them. |
HOOK_BREWING_COMPLETED |
3 |
Called when a brewing stand completed a brewing process. |
HOOK_BREWING_COMPLETING |
2 |
Called before a brewing stand completes a brewing process. |
HOOK_CHAT |
4 |
Called when a client sends a chat message that is not a command. The plugin may modify the chat message |
HOOK_CHUNK_AVAILABLE |
5 |
Called when a chunk is loaded or generated and becomes available in the world. |
HOOK_CHUNK_GENERATED |
6 |
Called after a chunk is generated. A plugin may do last modifications on the generated chunk before it is handed of to the world. |
HOOK_CHUNK_GENERATING |
7 |
Called before a chunk is generated. A plugin may override some parts of the generation algorithm. |
HOOK_CHUNK_UNLOADED |
8 |
Called after a chunk has been unloaded from a world. |
HOOK_CHUNK_UNLOADING |
9 |
Called before a chunk is unloaded from a world. The chunk has already been saved. |
HOOK_COLLECTING_PICKUP |
10 |
Called when a player is about to collect a pickup. |
HOOK_CRAFTING_NO_RECIPE |
11 |
Called when a player has items in the crafting slots and the server cannot locate any recipe. Plugin may provide a recipe. |
HOOK_DISCONNECT |
12 |
Called after the player has disconnected. |
HOOK_DROPSPENSE |
23 |
Called when a DropSpenser is dropspensing an item. |
HOOK_ENTITY_ADD_EFFECT |
14 |
Called when an effect is being added to an entity. Plugin may refuse the effect. |
HOOK_ENTITY_CHANGED_WORLD |
16 |
Called after a entity has changed the world. |
HOOK_ENTITY_CHANGING_WORLD |
15 |
Called before a entity has changed the world. Plugin may disallow a entity to change the world. |
HOOK_ENTITY_TELEPORT |
46 |
Called when an entity is being teleported. Plugin may refuse the teleportation. |
HOOK_EXECUTE_COMMAND |
17 |
Called when a client sends a chat message that is recognized as a command, before handing that command to the regular command handler. A plugin may stop the command from being handled. This hook is called even when the player doesn't have permissions for the command. |
HOOK_EXPLODED |
18 |
Called after an explosion has been processed in a world. |
HOOK_EXPLODING |
19 |
Called before an explosion is processed in a world. A plugin may alter the explosion parameters or cancel the explosion altogether. |
HOOK_HANDSHAKE |
20 |
Called when a Handshake packet is received from a client. |
HOOK_HOPPER_PULLING_ITEM |
21 |
Called when a hopper is pulling an item from the container above it. |
HOOK_HOPPER_PUSHING_ITEM |
22 |
Called when a hopper is pushing an item into the container it is aimed at. |
HOOK_KILLED |
24 |
Called when an entity has been killed. |
HOOK_KILLING |
25 |
Called when an entity has just been killed. A plugin may resurrect the entity by setting its health to above zero. |
HOOK_LOGIN |
26 |
Called when a Login packet is sent to the client, before the client is queued for authentication. |
HOOK_LOGIN_FORGE |
27 |
Called when a Forge client has sent its ModList to the server, during the login handshake. |
HOOK_PLAYER_ANIMATION |
13 |
Called when a client send the Animation packet. |
HOOK_PLAYER_BREAKING_BLOCK |
28 |
Called when a player is about to break a block. A plugin may cancel the event. |
HOOK_PLAYER_BROKEN_BLOCK |
29 |
Called after a player has broken a block. |
HOOK_PLAYER_CROUCHED |
41 |
Called when a player crouches. |
HOOK_PLAYER_DESTROYED |
30 |
Called when the cPlayer object is destroyed - a player has disconnected. |
HOOK_PLAYER_EATING |
31 |
Called when the player starts eating a held item. Plugins may abort the eating. |
HOOK_PLAYER_FISHED |
32 |
Called when the player reels the fishing rod back in, after the server decides the player's fishing reward and the experience to grant. |
HOOK_PLAYER_FISHING |
33 |
Called when the player reels the fishing rod back in, plugins may alter the fishing reward and the experience granted to the player. |
HOOK_PLAYER_FOOD_LEVEL_CHANGE |
34 |
Called when the player's food level is changing. Plugins may refuse the change. |
HOOK_PLAYER_JOINED |
35 |
Called when the player entity has been created. It has not yet been fully initialized. |
HOOK_PLAYER_LEFT_CLICK |
36 |
Called when the client sends the LeftClick packet. |
HOOK_PLAYER_MOVING |
37 |
Called when the player has moved and the movement is now being applied. |
HOOK_PLAYER_OPENING_WINDOW |
38 |
Called when the player is about to open a window. The plugin can return true to cancel the window opening. |
HOOK_PLAYER_PLACED_BLOCK |
39 |
Called when the player has just placed a block |
HOOK_PLAYER_PLACING_BLOCK |
40 |
Called when the player is about to place a block. A plugin may cancel the event. |
HOOK_PLAYER_RIGHT_CLICK |
42 |
Called when the client sends the RightClick packet. |
HOOK_PLAYER_RIGHT_CLICKING_ENTITY |
43 |
Called when the client sends the UseEntity packet. |
HOOK_PLAYER_SHOOTING |
44 |
Called when the player releases the mouse button to fire their bow. |
HOOK_PLAYER_SPAWNED |
45 |
Called after the player entity has been created. The entity is fully initialized and is spawning in the world. |
HOOK_PLAYER_TOSSING_ITEM |
47 |
Called when the player is tossing the held item (keypress Q) |
HOOK_PLAYER_USED_BLOCK |
48 |
Called after the player has right-clicked a block |
HOOK_PLAYER_USED_ITEM |
49 |
Called after the player has right-clicked with a usable item in their hand. |
HOOK_PLAYER_USING_BLOCK |
50 |
Called when the player is about to use (right-click) a block |
HOOK_PLAYER_USING_ITEM |
51 |
Called when the player is about to right-click with a usable item in their hand. |
HOOK_PLUGINS_LOADED |
53 |
Called after all plugins have loaded. |
HOOK_PLUGIN_MESSAGE |
52 |
Called when a PluginMessage packet is received from a client. |
HOOK_POST_CRAFTING |
54 |
Called after a valid recipe has been chosen for the current contents of the crafting grid. Plugins may modify the recipe. |
HOOK_PRE_CRAFTING |
55 |
Called before a recipe is searched for the current contents of the crafting grid. Plugins may provide a recipe and cancel the built-in search. |
HOOK_PROJECTILE_HIT_BLOCK |
56 |
Called when a projectile hits a block. |
HOOK_PROJECTILE_HIT_ENTITY |
57 |
Called when a projectile hits an entity. |
HOOK_SERVER_PING |
58 |
Called when a client pings the server from the server list. Plugins may change the favicon, server description, players online and maximum players values. |
HOOK_SPAWNED_ENTITY |
59 |
Called after an entity is spawned in a world. The entity is already part of the world. |
HOOK_SPAWNED_MONSTER |
60 |
Called after a mob is spawned in a world. The mob is already part of the world. |
HOOK_SPAWNING_ENTITY |
61 |
Called just before an entity is spawned in a world. |
HOOK_SPAWNING_MONSTER |
62 |
Called just before a mob is spawned in a world. |
HOOK_TAKE_DAMAGE |
63 |
Called when an entity is taking any kind of damage. Plugins may modify the damage value, effects, source or cancel the damage. |
HOOK_TICK |
64 |
Called when the main server thread ticks - 20 times a second. |
HOOK_UPDATED_SIGN |
65 |
Called after a sign text has been updated, either by a player or by any external means. |
HOOK_UPDATING_SIGN |
66 |
Called before a sign text is updated, either by a player or by any external means. |
HOOK_WEATHER_CHANGED |
67 |
Called after the weather has changed. |
HOOK_WEATHER_CHANGING |
68 |
Called just before the weather changes |
HOOK_WORLD_STARTED |
69 |
Called when a world has been started. |
HOOK_WORLD_TICK |
70 |
Called in each world's tick thread when the game logic is about to tick (20 times a second). |