summaryrefslogtreecommitdiffstats
path: root/src/Bindings/Plugin.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-03-05 13:57:19 +0100
committerMattes D <github@xoft.cz>2015-03-05 13:57:19 +0100
commit78120db487e775bc294d8222581b6791456cc380 (patch)
treef142764f84560a9761bf7d70efbdf4f6d28d0421 /src/Bindings/Plugin.h
parentLua API: Fixed md5 and sha1 hex formatting. (diff)
parentAdded OnTeleportEntity hook for plugins. (diff)
downloadcuberite-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/Plugin.h')
-rw-r--r--src/Bindings/Plugin.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Bindings/Plugin.h b/src/Bindings/Plugin.h
index 6210dbed4..6ade8ef9f 100644
--- a/src/Bindings/Plugin.h
+++ b/src/Bindings/Plugin.h
@@ -57,6 +57,7 @@ public:
virtual bool OnCraftingNoRecipe (cPlayer & a_Player, cCraftingGrid & a_Grid, cCraftingRecipe & a_Recipe) = 0;
virtual bool OnDisconnect (cClientHandle & a_Client, const AString & a_Reason) = 0;
virtual bool OnEntityAddEffect (cEntity & a_Entity, int a_EffectType, int a_EffectDurationTicks, int a_EffectIntensity, double a_DistanceModifier) = 0;
+ virtual bool OnEntityTeleport (cEntity & a_Entity, const Vector3d & a_OldPosition, const Vector3d & a_NewPosition) = 0;
virtual bool OnExecuteCommand (cPlayer * a_Player, const AStringVector & a_Split) = 0;
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) = 0;
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) = 0;