diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-08-13 16:44:29 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-08-13 16:44:29 +0200 |
commit | 0ac24a98e4055f791f7dccee89997a7852c865b7 (patch) | |
tree | f1c361afa8142dcc1a169404b4f8deccb7dcf6b9 /source/PluginManager.h | |
parent | Removed comments (diff) | |
parent | Merge pull request #84 from tonibm19/patch-2 (diff) | |
download | cuberite-0ac24a98e4055f791f7dccee89997a7852c865b7.tar cuberite-0ac24a98e4055f791f7dccee89997a7852c865b7.tar.gz cuberite-0ac24a98e4055f791f7dccee89997a7852c865b7.tar.bz2 cuberite-0ac24a98e4055f791f7dccee89997a7852c865b7.tar.lz cuberite-0ac24a98e4055f791f7dccee89997a7852c865b7.tar.xz cuberite-0ac24a98e4055f791f7dccee89997a7852c865b7.tar.zst cuberite-0ac24a98e4055f791f7dccee89997a7852c865b7.zip |
Diffstat (limited to 'source/PluginManager.h')
-rw-r--r-- | source/PluginManager.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/PluginManager.h b/source/PluginManager.h index 36be4d7e5..b90f90156 100644 --- a/source/PluginManager.h +++ b/source/PluginManager.h @@ -38,6 +38,12 @@ class cPawn; // fwd: CommandOutput.h class cCommandOutputCallback; +// fwd: BlockEntities/HopperEntity.h +class cHopperEntity; + +// fwd: BlockEntities/BlockEntityWithItems.h +class cBlockEntityWithItems; + @@ -66,6 +72,8 @@ public: // tolua_export HOOK_EXPLODED, HOOK_EXPLODING, HOOK_HANDSHAKE, + HOOK_HOPPER_PULLING_ITEM, + HOOK_HOPPER_PUSHING_ITEM, HOOK_KILLING, HOOK_LOGIN, HOOK_PLAYER_ANIMATION, @@ -143,6 +151,8 @@ public: // tolua_export bool CallHookExploded (cWorld & a_World, double a_ExplosionSize, bool a_CanCauseFire, double a_X, double a_Y, double a_Z, eExplosionSource a_Source, void * a_SourceData); bool CallHookExploding (cWorld & a_World, double & a_ExplosionSize, bool & a_CanCauseFire, double a_X, double a_Y, double a_Z, eExplosionSource a_Source, void * a_SourceData); bool CallHookHandshake (cClientHandle * a_ClientHandle, const AString & a_Username); + bool CallHookHopperPullingItem (cWorld & a_World, cHopperEntity & a_Hopper, int a_DstSlotNum, cBlockEntityWithItems & a_SrcEntity, int a_SrcSlotNum); + bool CallHookHopperPushingItem (cWorld & a_World, cHopperEntity & a_Hopper, int a_SrcSlotNum, cBlockEntityWithItems & a_DstEntity, int a_DstSlotNum); bool CallHookKilling (cEntity & a_Victim, cEntity * a_Killer); bool CallHookLogin (cClientHandle * a_Client, int a_ProtocolVersion, const AString & a_Username); bool CallHookPlayerAnimation (cPlayer & a_Player, int a_Animation); |