Table of Contents

Interface ICollectibleDisplayable

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 require custom code or rendering for it

public interface ICollectibleDisplayable

Methods

GetMeshDataForDisplay(ItemSlot, string)

Return a custom mesh to be used for the collectible. Return null to use default item/block mesh. It is recommended to cache the returned mesh in the ObjectCache for efficieny.

MeshData GetMeshDataForDisplay(ItemSlot inSlot, string displayType)

Parameters

inSlot ItemSlot
displayType string

e.g. "shelf" or "ground" or "displaycase"

Returns

MeshData

NowOnDisplay(BlockEntity, ItemSlot)

This collectible was placed in-world and the chunk is about to get re-tesselated.

void NowOnDisplay(BlockEntity byBlockEntity, ItemSlot inSlot)

Parameters

byBlockEntity BlockEntity
inSlot ItemSlot