summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginLua.h
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2015-05-19 10:24:50 +0200
committerAlexander Harkness <me@bearbin.net>2015-05-19 10:24:50 +0200
commitb50135e78f9967772d585be5a62a4c282162220a (patch)
tree105a4ae13752f4cb8e87c36a5391f615217f2a7b /src/Bindings/PluginLua.h
parentMerge branch 'master' of https://github.com/mc-server/MCServer (diff)
parentAdded OnEntityChangeWorld.lua and OnEntityChangedWorld.lua hooks to APIDump (diff)
downloadcuberite-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/PluginLua.h')
-rw-r--r--src/Bindings/PluginLua.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Bindings/PluginLua.h b/src/Bindings/PluginLua.h
index 524c249b0..533dc0331 100644
--- a/src/Bindings/PluginLua.h
+++ b/src/Bindings/PluginLua.h
@@ -115,6 +115,8 @@ public:
virtual bool OnCraftingNoRecipe (cPlayer & a_Player, cCraftingGrid & a_Grid, cCraftingRecipe & a_Recipe) override;
virtual bool OnDisconnect (cClientHandle & a_Client, const AString & a_Reason) override;
virtual bool OnEntityAddEffect (cEntity & a_Entity, int a_EffectType, int a_EffectDurationTicks, int a_EffectIntensity, double a_DistanceModifier) override;
+ virtual bool OnEntityChangeWorld (cEntity & a_Entity, cWorld & a_World) override;
+ virtual bool OnEntityChangedWorld (cEntity & a_Entity, cWorld & a_World) override;
virtual bool OnExecuteCommand (cPlayer * a_Player, const AStringVector & a_Split, const AString & a_EntireCommand, cPluginManager::CommandResult & a_Result) override;
virtual bool OnExploded (cWorld & a_World, double a_ExplosionSize, bool a_CanCauseFire, double a_X, double a_Y, double a_Z, eExplosionSource a_Source, void * a_SourceData) override;
virtual bool OnExploding (cWorld & a_World, double & a_ExplosionSize, bool & a_CanCauseFire, double a_X, double a_Y, double a_Z, eExplosionSource a_Source, void * a_SourceData) override;