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
- Extension Methods
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
Returns
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
BlockEntityinSlot
ItemSlot