Consumable
in
Interface implemented by objects that can be consumed by mobs.
Table of Contents
- getAdditionalEffects() : array<string|int, EffectInstance>
- onConsume() : void
- Called when this Consumable is consumed by mob, after standard resulting effects have been applied.
Methods
getAdditionalEffects()
public
getAdditionalEffects() : array<string|int, EffectInstance>
Return values
array<string|int, EffectInstance> —onConsume()
Called when this Consumable is consumed by mob, after standard resulting effects have been applied.
public
onConsume(Living $consumer) : void
Parameters
- $consumer : Living