Table of Contents

Interface ICollectibleOnDisplayInteractable

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll

A collectible object that can be placed on the ground or on shelves or in display cases, but also can still accept interactions from the player

public interface ICollectibleOnDisplayInteractable

Methods

OnInteractCancel(float, ItemSlot, IPlayer, EnumItemUseCancelReason)

bool OnInteractCancel(float secondsUsed, ItemSlot inSlot, IPlayer byPlayer, EnumItemUseCancelReason cancelReason)

Parameters

secondsUsed float
inSlot ItemSlot
byPlayer IPlayer
cancelReason EnumItemUseCancelReason

Returns

bool

OnInteractStart(ItemSlot, IPlayer)

bool OnInteractStart(ItemSlot inSlot, IPlayer byPlayer)

Parameters

inSlot ItemSlot
byPlayer IPlayer

Returns

bool

OnInteractStep(float, ItemSlot, IPlayer)

bool OnInteractStep(float secondsUsed, ItemSlot inSlot, IPlayer byPlayer)

Parameters

secondsUsed float
inSlot ItemSlot
byPlayer IPlayer

Returns

bool

OnInteractStop(float, ItemSlot, IPlayer)

void OnInteractStop(float secondsUsed, ItemSlot inSlot, IPlayer byPlayer)

Parameters

secondsUsed float
inSlot ItemSlot
byPlayer IPlayer