summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginLua.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/PluginLua.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/PluginLua.h')
-rw-r--r--src/Bindings/PluginLua.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Bindings/PluginLua.h b/src/Bindings/PluginLua.h
index f443f5fc0..7b528501b 100644
--- a/src/Bindings/PluginLua.h
+++ b/src/Bindings/PluginLua.h
@@ -106,6 +106,7 @@ public:
virtual bool OnPlayerRightClickingEntity(cPlayer & a_Player, cEntity & a_Entity) override;
virtual bool OnPlayerShooting (cPlayer & a_Player) override;
virtual bool OnPlayerSpawned (cPlayer & a_Player) override;
+ virtual bool OnEntityTeleport (cEntity & a_Entity, const Vector3d & a_OldPosition, const Vector3d & a_NewPosition) override;
virtual bool OnPlayerTossingItem (cPlayer & a_Player) override;
virtual bool OnPlayerUsedBlock (cPlayer & a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, int a_CursorX, int a_CursorY, int a_CursorZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta) override;
virtual bool OnPlayerUsedItem (cPlayer & a_Player, int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockFace, int a_CursorX, int a_CursorY, int a_CursorZ) override;