summaryrefslogtreecommitdiffstats
path: root/src/Entities/Pawn.h
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-06-13 19:59:59 +0200
committerarchshift <admin@archshift.com>2014-06-17 20:39:22 +0200
commit68c30790db17b9d21b2fcda4c7edec679162c577 (patch)
treef9fc6786d61c4700ea5b65f3b93ef920c8f55171 /src/Entities/Pawn.h
parentAPIDump: Added OnEntityAddEffect hook documentation. (diff)
downloadcuberite-68c30790db17b9d21b2fcda4c7edec679162c577.tar
cuberite-68c30790db17b9d21b2fcda4c7edec679162c577.tar.gz
cuberite-68c30790db17b9d21b2fcda4c7edec679162c577.tar.bz2
cuberite-68c30790db17b9d21b2fcda4c7edec679162c577.tar.lz
cuberite-68c30790db17b9d21b2fcda4c7edec679162c577.tar.xz
cuberite-68c30790db17b9d21b2fcda4c7edec679162c577.tar.zst
cuberite-68c30790db17b9d21b2fcda4c7edec679162c577.zip
Diffstat (limited to 'src/Entities/Pawn.h')
-rw-r--r--src/Entities/Pawn.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/Entities/Pawn.h b/src/Entities/Pawn.h
index c6be6f668..9f7771d79 100644
--- a/src/Entities/Pawn.h
+++ b/src/Entities/Pawn.h
@@ -30,17 +30,10 @@ public:
@param a_EffectType The entity effect to apply
@param a_EffectDurationTicks The duration of the effect
@param a_EffectIntensity The level of the effect (0 = Potion I, 1 = Potion II, etc)
- @param a_User The pawn that produced the effect (e.g. threw the potion)
+ @param a_Creator The pawn that produced the effect (e.g. threw the potion)
@param a_DistanceModifier The scalar multiplied to the potion duration, only applies to splash potions)
*/
- void AddEntityEffect(cEntityEffect::eType a_EffectType, int a_EffectDurationTicks, short a_EffectIntensity, cPawn * a_User, double a_DistanceModifier = 1);
-
- /** Applies an entity effect
- Checks with plugins if they allow the addition.
- @param a_EffectType The entity effect to apply
- @param a_Effect The parameters of the effect
- */
- void AddEntityEffect(cEntityEffect::eType a_EffectType, cEntityEffect a_Effect);
+ void AddEntityEffect(cEntityEffect::eType a_EffectType, int a_EffectDurationTicks, short a_EffectIntensity, cPawn * a_Creator, double a_DistanceModifier = 1);
/** Removes a currently applied entity effect
@param a_EffectType The entity effect to remove