selery ~master (2019-01-01T00:21:55Z)
Dub
Repo
Living.addEffect
selery
entity
living
Living
Adds an effect to the entity.
bool
addEffect
(sul.effects.Effect effect, ubyte level, tick_t duration, Living thrower)
class
Living
bool
addEffect
(
sul.effects.Effect
effect
,
ubyte
level
= 0
,
tick_t
duration
= 30
,
Living
thrower
= null
)
bool
addEffect
(Effect effect)
Meta
Source
See Implementation
selery
entity
living
Living
constructors
this
functions
addEffect
attackImpl
callDeathEvent
clearEffects
die
heal
healthUpdated
onEffectAdded
onEffectRemoved
opBinaryRight
recalculateColors
recalculateSpeed
removeEffect
tick
validateAttack
properties
absorption
alive
dead
despawnAfter
health
healthNoAbs
maxAbsorption
maxHealth
maxHealthNoAbs
potionAmbient
potionColor
speed
variables
effects
immortal
last_received_attack
last_void_damage
m_health
Adds an effect to the entity.