ConsumableItem
            
            extends
                            Consumable,                             Releasable                    
                
            in
            
        
    
        
            Interface implemented by objects that can be consumed by mobs.
Table of Contents
- canStartUsingItem() : bool
- getAdditionalEffects() : array<string|int, EffectInstance>
- getResidue() : Item
- Returns the leftover that this Consumable produces when it is consumed. For Items, this is usually air, but could be an Item to add to a Player's inventory afterwards (such as a bowl).
- onConsume() : void
- Called when this Consumable is consumed by mob, after standard resulting effects have been applied.
Methods
canStartUsingItem()
    public
                    canStartUsingItem(Player $player) : bool
        
        Parameters
- $player : Player
Return values
bool —getAdditionalEffects()
    public
                    getAdditionalEffects() : array<string|int, EffectInstance>
    
    
    
        Return values
array<string|int, EffectInstance> —getResidue()
Returns the leftover that this Consumable produces when it is consumed. For Items, this is usually air, but could be an Item to add to a Player's inventory afterwards (such as a bowl).
    public
                    getResidue() : Item
    
    
    
        Return values
Item —onConsume()
Called when this Consumable is consumed by mob, after standard resulting effects have been applied.
    public
                    onConsume(Living $consumer) : void
    
        Parameters
- $consumer : Living