Table of Contents

Interface IHarvestable

Namespace
Vintagestory.GameContent
Assembly
VintagestoryAPI.dll

Currently only the knife looks for this interface

public interface IHarvestable
Extension Methods

Properties

HarvestAnimation

string HarvestAnimation { get; }

Property Value

string

HarvestableSound

AssetLocation HarvestableSound { get; }

Property Value

AssetLocation

Methods

GetHarvestDuration(ItemSlot, Entity)

float GetHarvestDuration(ItemSlot slot, Entity forEntity)

Parameters

slot ItemSlot
forEntity Entity

Returns

float

IsHarvestable(ItemSlot, Entity)

bool IsHarvestable(ItemSlot slot, Entity forEntity)

Parameters

slot ItemSlot
forEntity Entity

Returns

bool

SetHarvested(IPlayer, float)

void SetHarvested(IPlayer byPlayer, float dropQuantityMultiplier = 1)

Parameters

byPlayer IPlayer
dropQuantityMultiplier float