diff options
author | Alexander Harkness <me@bearbin.net> | 2015-05-19 10:24:50 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2015-05-19 10:24:50 +0200 |
commit | b50135e78f9967772d585be5a62a4c282162220a (patch) | |
tree | 105a4ae13752f4cb8e87c36a5391f615217f2a7b /src/Bindings/PluginManager.h | |
parent | Merge branch 'master' of https://github.com/mc-server/MCServer (diff) | |
parent | Added OnEntityChangeWorld.lua and OnEntityChangedWorld.lua hooks to APIDump (diff) | |
download | cuberite-b50135e78f9967772d585be5a62a4c282162220a.tar cuberite-b50135e78f9967772d585be5a62a4c282162220a.tar.gz cuberite-b50135e78f9967772d585be5a62a4c282162220a.tar.bz2 cuberite-b50135e78f9967772d585be5a62a4c282162220a.tar.lz cuberite-b50135e78f9967772d585be5a62a4c282162220a.tar.xz cuberite-b50135e78f9967772d585be5a62a4c282162220a.tar.zst cuberite-b50135e78f9967772d585be5a62a4c282162220a.zip |
Diffstat (limited to 'src/Bindings/PluginManager.h')
-rw-r--r-- | src/Bindings/PluginManager.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Bindings/PluginManager.h b/src/Bindings/PluginManager.h index d8c886b62..2c3eaa75f 100644 --- a/src/Bindings/PluginManager.h +++ b/src/Bindings/PluginManager.h @@ -85,6 +85,8 @@ public: HOOK_DISCONNECT, HOOK_PLAYER_ANIMATION, HOOK_ENTITY_ADD_EFFECT, + HOOK_ENTITY_CHANGE_WORLD, + HOOK_ENTITY_CHANGED_WORLD, HOOK_EXECUTE_COMMAND, HOOK_EXPLODED, HOOK_EXPLODING, @@ -200,6 +202,8 @@ public: 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 CallHookEntityChangeWorld (cEntity & a_Entity, cWorld & a_World); + bool CallHookEntityChangedWorld (cEntity & a_Entity, cWorld & a_World); bool CallHookExecuteCommand (cPlayer * a_Player, const AStringVector & a_Split, const AString & a_EntireCommand, CommandResult & a_Result); // 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); |