summaryrefslogtreecommitdiffstats
path: root/src/Bindings/Plugin.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-03-29 22:32:50 +0100
committerMattes D <github@xoft.cz>2014-03-29 22:32:50 +0100
commit37812813d3bf8011089bc6e117b226a14a844540 (patch)
treeaf60ec69801c9bd9a80d7b5328814c490cb6fc47 /src/Bindings/Plugin.h
parentRenamed lua dll for tolua++.exe. (diff)
parentFixed the OnProjectileHitBlock hook not stopping projectiles. (diff)
downloadcuberite-37812813d3bf8011089bc6e117b226a14a844540.tar
cuberite-37812813d3bf8011089bc6e117b226a14a844540.tar.gz
cuberite-37812813d3bf8011089bc6e117b226a14a844540.tar.bz2
cuberite-37812813d3bf8011089bc6e117b226a14a844540.tar.lz
cuberite-37812813d3bf8011089bc6e117b226a14a844540.tar.xz
cuberite-37812813d3bf8011089bc6e117b226a14a844540.tar.zst
cuberite-37812813d3bf8011089bc6e117b226a14a844540.zip
Diffstat (limited to 'src/Bindings/Plugin.h')
-rw-r--r--src/Bindings/Plugin.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Bindings/Plugin.h b/src/Bindings/Plugin.h
index 057fa0304..df0bd4dcc 100644
--- a/src/Bindings/Plugin.h
+++ b/src/Bindings/Plugin.h
@@ -90,6 +90,8 @@ public:
virtual bool OnPluginsLoaded (void) = 0;
virtual bool OnPostCrafting (const cPlayer * a_Player, const cCraftingGrid * a_Grid, cCraftingRecipe * a_Recipe) = 0;
virtual bool OnPreCrafting (const cPlayer * a_Player, const cCraftingGrid * a_Grid, cCraftingRecipe * a_Recipe) = 0;
+ virtual bool OnProjectileHitBlock (cProjectileEntity & a_Projectile) = 0;
+ virtual bool OnProjectileHitEntity (cProjectileEntity & a_Projectile, cEntity & a_HitEntity) = 0;
virtual bool OnSpawnedEntity (cWorld & a_World, cEntity & a_Entity) = 0;
virtual bool OnSpawnedMonster (cWorld & a_World, cMonster & a_Monster) = 0;
virtual bool OnSpawningEntity (cWorld & a_World, cEntity & a_Entity) = 0;