Documentation

Consumable

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

onConsume()

Called when this Consumable is consumed by mob, after standard resulting effects have been applied.

public onConsume(Living $consumer) : void
Parameters
$consumer : Living
Return values
void

Search results