diff options
author | Mattes D <github@xoft.cz> | 2015-03-05 13:57:19 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-03-05 13:57:19 +0100 |
commit | 78120db487e775bc294d8222581b6791456cc380 (patch) | |
tree | f142764f84560a9761bf7d70efbdf4f6d28d0421 /src/Bindings/PluginManager.h | |
parent | Lua API: Fixed md5 and sha1 hex formatting. (diff) | |
parent | Added OnTeleportEntity hook for plugins. (diff) | |
download | cuberite-78120db487e775bc294d8222581b6791456cc380.tar cuberite-78120db487e775bc294d8222581b6791456cc380.tar.gz cuberite-78120db487e775bc294d8222581b6791456cc380.tar.bz2 cuberite-78120db487e775bc294d8222581b6791456cc380.tar.lz cuberite-78120db487e775bc294d8222581b6791456cc380.tar.xz cuberite-78120db487e775bc294d8222581b6791456cc380.tar.zst cuberite-78120db487e775bc294d8222581b6791456cc380.zip |
Diffstat (limited to 'src/Bindings/PluginManager.h')
-rw-r--r-- | src/Bindings/PluginManager.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Bindings/PluginManager.h b/src/Bindings/PluginManager.h index 97e91c1df..c8b4de9d6 100644 --- a/src/Bindings/PluginManager.h +++ b/src/Bindings/PluginManager.h @@ -109,6 +109,7 @@ public: HOOK_PLAYER_RIGHT_CLICKING_ENTITY, HOOK_PLAYER_SHOOTING, HOOK_PLAYER_SPAWNED, + HOOK_ENTITY_TELEPORT, HOOK_PLAYER_TOSSING_ITEM, HOOK_PLAYER_USED_BLOCK, HOOK_PLAYER_USED_ITEM, @@ -190,6 +191,7 @@ public: bool CallHookCraftingNoRecipe (cPlayer & a_Player, cCraftingGrid & a_Grid, cCraftingRecipe & a_Recipe); bool CallHookDisconnect (cClientHandle & a_Client, const AString & a_Reason); bool CallHookEntityAddEffect (cEntity & a_Entity, int a_EffectType, int a_EffectDurationTicks, int a_EffectIntensity, double a_DistanceModifier); + bool CallHookEntityTeleport (cEntity & a_Entity, const Vector3d & a_OldPosition, const Vector3d & a_NewPosition); bool CallHookExecuteCommand (cPlayer * a_Player, const AStringVector & a_Split); // If a_Player == nullptr, it is a console cmd bool CallHookExploded (cWorld & a_World, double a_ExplosionSize, bool a_CanCauseFire, double a_X, double a_Y, double a_Z, eExplosionSource a_Source, void * a_SourceData); bool CallHookExploding (cWorld & a_World, double & a_ExplosionSize, bool & a_CanCauseFire, double a_X, double a_Y, double a_Z, eExplosionSource a_Source, void * a_SourceData); |