diff options
author | Mattes D <github@xoft.cz> | 2014-03-29 22:32:50 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-03-29 22:32:50 +0100 |
commit | 37812813d3bf8011089bc6e117b226a14a844540 (patch) | |
tree | af60ec69801c9bd9a80d7b5328814c490cb6fc47 /src/Bindings/Plugin.h | |
parent | Renamed lua dll for tolua++.exe. (diff) | |
parent | Fixed the OnProjectileHitBlock hook not stopping projectiles. (diff) | |
download | cuberite-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.h | 2 |
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; |